MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production. MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1) MONGODB locomotive_search_test['system.namespaces'].find({}) MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1) MONGODB locomotive_search_test['locomotive_content_types'].find({}) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (26.5861ms) MOPED: 127.0.0.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.4001ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1027ms) MOPED: 127.0.0.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.2539ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0159ms) MOPED: 127.0.0.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.2759ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.1831ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3083ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2897ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} 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_accounts documents=[{"_id"=>"51af163c1e66cf7104000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8b909163c85d7b0fb9c7cffe8c495a1a84d933ec", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"7ffY2PCMWyq3Ex4X1mZc", "api_key"=>"56d39fe27ab7e1d8a6d1696dde83614594652d1c", "updated_at"=>2013-06-05 10:43:08 UTC, "created_at"=>2013-06-05 10:43:08 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} (612.7977ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af163d1e66cf7104000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:43:08 UTC, "updated_at"=>2013-06-05 10:43:09 UTC, "memberships"=>[{"_id"=>"51af163d1e66cf7104000003", "role"=>"admin", "account_id"=>"51af163c1e66cf7104000001"}]}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af163d1e66cf7104000002", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af163d1e66cf7104000002", "_id"=>{"$ne"=>"51af163d1e66cf7104000004"}}} (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af163d1e66cf7104000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af163d1e66cf7104000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:43:09 UTC, "created_at"=>2013-06-05 10:43:09 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af163d1e66cf7104000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"51af163d1e66cf7104000002", "template_dependencies.en"=>{"$in"=>["51af163d1e66cf7104000004"]}}, "$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"=>["51af163d1e66cf7104000004"]}} 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"=>"51af163d1e66cf7104000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af163d1e66cf7104000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af163d1e66cf7104000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af163d1e66cf7104000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af163d1e66cf7104000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3362ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af163d1e66cf7104000002", "_id"=>{"$ne"=>"51af163d1e66cf7104000006"}}} (0.6640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af163d1e66cf7104000002", "_id"=>{"$ne"=>"51af163d1e66cf7104000006"}}, "$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"=>nil, "site_id"=>"51af163d1e66cf7104000002", "_id"=>{"$ne"=>"51af163d1e66cf7104000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"51af163d1e66cf7104000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af163d1e66cf7104000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:43:09 UTC, "created_at"=>2013-06-05 10:43:09 UTC}] flags=[] (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af163d1e66cf7104000002", "template_dependencies.en"=>{"$in"=>["51af163d1e66cf7104000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af163d1e66cf7104000006"}, "$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"=>["51af163d1e66cf7104000006"]}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5510ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2689ms) 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.0090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.6549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3669ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af163d1e66cf7104000008", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"226344852c74ca11c6cb5cdab726626b4abff5e7", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"qQx4ipPvSr7aBdGWCbzy", "api_key"=>"216e2b517770a9cde2cb2e19bc92c9f3bcc77a3c", "updated_at"=>2013-06-05 10:43:09 UTC, "created_at"=>2013-06-05 10:43:09 UTC}] flags=[] (0.0989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2809ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af163d1e66cf7104000009", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:43:08 UTC, "updated_at"=>2013-06-05 10:43:09 UTC, "memberships"=>[{"_id"=>"51af163d1e66cf710400000a", "role"=>"admin", "account_id"=>"51af163d1e66cf7104000008"}]}] flags=[] (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af163d1e66cf7104000009", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af163d1e66cf7104000009", "_id"=>{"$ne"=>"51af163d1e66cf710400000b"}}} (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af163d1e66cf710400000b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af163d1e66cf7104000009", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:43:09 UTC, "created_at"=>2013-06-05 10:43:09 UTC}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af163d1e66cf7104000009", "template_dependencies.en"=>{"$in"=>["51af163d1e66cf710400000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af163d1e66cf710400000b"}, "$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"=>["51af163d1e66cf710400000b"]}} 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"=>"51af163d1e66cf710400000b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3147ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af163d1e66cf710400000c", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af163d1e66cf7104000009"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af163d1e66cf710400000b", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af163d1e66cf7104000009", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7160ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af163d1e66cf7104000009", "_id"=>{"$ne"=>"51af163d1e66cf710400000d"}}} (0.5038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af163d1e66cf7104000009", "_id"=>{"$ne"=>"51af163d1e66cf710400000d"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af163d1e66cf7104000009", "_id"=>{"$ne"=>"51af163d1e66cf710400000d"}}, "$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"=>"51af163d1e66cf710400000d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af163d1e66cf7104000009", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:43:09 UTC, "created_at"=>2013-06-05 10:43:09 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af163d1e66cf7104000009", "template_dependencies.en"=>{"$in"=>["51af163d1e66cf710400000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (24.0991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af163d1e66cf710400000d"}, "$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"=>["51af163d1e66cf710400000d"]}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5682ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4599ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4828ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4082ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0121ms) MOPED: 127.0.0.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.5488ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8981ms) MOPED: 127.0.0.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.2251ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3107ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_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_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af168c1e66cf7e74000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"976425260592882598676ebfb5d18a832ce2de27", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"gqr1m4Uvh6b9ig5sQYuY", "api_key"=>"83030c595b25fe1b6d77d2d34bacacf3cc965655", "updated_at"=>2013-06-05 10:44:28 UTC, "created_at"=>2013-06-05 10:44:28 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.7219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af168c1e66cf7e74000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:44:28 UTC, "updated_at"=>2013-06-05 10:44:28 UTC, "memberships"=>[{"_id"=>"51af168c1e66cf7e74000003", "role"=>"admin", "account_id"=>"51af168c1e66cf7e74000001"}]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af168c1e66cf7e74000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9549ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af168c1e66cf7e74000002", "_id"=>{"$ne"=>"51af168c1e66cf7e74000004"}}} (0.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af168c1e66cf7e74000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af168c1e66cf7e74000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.2213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168c1e66cf7e74000004"}, "$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"=>{"site_id"=>"51af168c1e66cf7e74000002", "template_dependencies.en"=>{"$in"=>["51af168c1e66cf7e74000004"]}}, "$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"=>["51af168c1e66cf7e74000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af168c1e66cf7e74000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4463ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af168d1e66cf7e74000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af168c1e66cf7e74000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af168c1e66cf7e74000004", "_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"=>"51af168c1e66cf7e74000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af168c1e66cf7e74000002", "_id"=>{"$ne"=>"51af168d1e66cf7e74000006"}}} (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168c1e66cf7e74000002", "_id"=>{"$ne"=>"51af168d1e66cf7e74000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168c1e66cf7e74000002", "_id"=>{"$ne"=>"51af168d1e66cf7e74000006"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af168d1e66cf7e74000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af168c1e66cf7e74000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168c1e66cf7e74000002", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e74000006"]}}, "$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"=>"51af168d1e66cf7e74000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4437ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af168d1e66cf7e74000006"]}} 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"=>"51af168c1e66cf7e74000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6669ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af168d1e66cf7e74000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af168c1e66cf7e74000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af168d1e66cf7e74000008", "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC, "entries_custom_fields"=>[{"_id"=>"51af168d1e66cf7e74000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af168d1e66cf7e74000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af168d1e66cf7e74000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}}} flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af168d1e66cf7e7400000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af168d1e66cf7e74000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af168d1e66cf7e74000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3343ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af168d1e66cf7e74000007"]}}} (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af168d1e66cf7e7400000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af168d1e66cf7e74000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af168d1e66cf7e74000007", "content_type_id"=>"51af168d1e66cf7e74000007", "_slug"=>"findable-entry", "site_id"=>"51af168c1e66cf7e74000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 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::ContentEntry51af168d1e66cf7e74000007", "_original_id"=>"51af168d1e66cf7e7400000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af168d1e66cf7e7400000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af168c1e66cf7e74000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af168d1e66cf7e74000007", "_original_id"=>"51af168d1e66cf7e7400000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af168d1e66cf7e7400000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af168d1e66cf7e74000007"]}} 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_content_entries selector={"content_type_id"=>"51af168d1e66cf7e74000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2530ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af168d1e66cf7e74000007"]}}} (0.5140ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af168d1e66cf7e74000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5703ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af168d1e66cf7e7400000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af168d1e66cf7e74000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af168d1e66cf7e74000007", "content_type_id"=>"51af168d1e66cf7e74000007", "_slug"=>"hidden", "site_id"=>"51af168c1e66cf7e74000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af168d1e66cf7e74000007", "_original_id"=>"51af168d1e66cf7e7400000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4692ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af168d1e66cf7e7400000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af168c1e66cf7e74000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af168d1e66cf7e74000007", "_original_id"=>"51af168d1e66cf7e7400000c", "_keywords"=>["hidden"]}] flags=[] (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.4151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af168c1e66cf7e74000002", "parent_id"=>"51af168c1e66cf7e74000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af168c1e66cf7e74000004", "site_id"=>"51af168c1e66cf7e74000002", "_id"=>{"$ne"=>"51af168d1e66cf7e7400000e"}}} (0.4623ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af168c1e66cf7e74000004"]}} flags=[:slave_ok] 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"=>"51af168d1e66cf7e7400000e", "parent_ids"=>["51af168c1e66cf7e74000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af168c1e66cf7e74000002", "parent_id"=>"51af168c1e66cf7e74000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168c1e66cf7e74000002", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e7400000e"]}}, "$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"=>"51af168d1e66cf7e7400000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3061ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af168d1e66cf7e7400000e"]}} 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"=>"51af168d1e66cf7e7400000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af168d1e66cf7e7400000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af168c1e66cf7e74000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e7400000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1197ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"51af168c1e66cf7e74000002", "parent_id"=>"51af168c1e66cf7e74000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af168c1e66cf7e74000004", "site_id"=>"51af168c1e66cf7e74000002", "_id"=>{"$ne"=>"51af168d1e66cf7e74000010"}}} (0.7610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168c1e66cf7e74000004", "site_id"=>"51af168c1e66cf7e74000002", "_id"=>{"$ne"=>"51af168d1e66cf7e74000010"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168c1e66cf7e74000004", "site_id"=>"51af168c1e66cf7e74000002", "_id"=>{"$ne"=>"51af168d1e66cf7e74000010"}}, "$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={"_id"=>{"$in"=>["51af168c1e66cf7e74000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af168d1e66cf7e74000010", "parent_ids"=>["51af168c1e66cf7e74000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af168c1e66cf7e74000002", "parent_id"=>"51af168c1e66cf7e74000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168c1e66cf7e74000002", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e74000010"]}}, "$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"=>"51af168d1e66cf7e74000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2799ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af168d1e66cf7e74000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e74000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3002ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af168d1e66cf7e74000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af168c1e66cf7e74000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e74000010", "_keywords"=>["en:search"]}] flags=[] (0.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168c1e66cf7e74000002", "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_sites selector={"$query"=>{"_id"=>"51af168c1e66cf7e74000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2909ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af168c1e66cf7e74000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 10:44:29 UTC}} flags=[] (0.1259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168c1e66cf7e74000002", "template_dependencies.en"=>{"$in"=>["51af168c1e66cf7e74000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af168c1e66cf7e74000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af168d1e66cf7e74000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af168c1e66cf7e74000002"}}} flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5789ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af168d1e66cf7e74000012", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 10:44:28 UTC, "updated_at"=>2013-06-05 10:44:29 UTC, "memberships"=>[{"_id"=>"51af168d1e66cf7e74000013", "role"=>"admin", "account_id"=>"51af168c1e66cf7e74000001"}]}] flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af168d1e66cf7e74000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e74000012", "_id"=>{"$ne"=>"51af168d1e66cf7e74000014"}}} (0.5908ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af168d1e66cf7e74000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af168d1e66cf7e74000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e74000012", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e74000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168d1e66cf7e74000014"}, "$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"=>["51af168d1e66cf7e74000014"]}} 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"=>"51af168d1e66cf7e74000014"}, "$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"=>"51af168d1e66cf7e74000015", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af168d1e66cf7e74000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e74000014", "_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"=>"51af168d1e66cf7e74000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4282ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e74000012", "_id"=>{"$ne"=>"51af168d1e66cf7e74000016"}}} (0.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e74000012", "_id"=>{"$ne"=>"51af168d1e66cf7e74000016"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e74000012", "_id"=>{"$ne"=>"51af168d1e66cf7e74000016"}}, "$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"=>"51af168d1e66cf7e74000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af168d1e66cf7e74000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e74000012", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e74000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2577ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168d1e66cf7e74000016"}, "$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"=>["51af168d1e66cf7e74000016"]}} 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"=>"51af168d1e66cf7e74000012", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e74000012", "_id"=>{"$ne"=>"51af168d1e66cf7e74000017"}}} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e74000012", "_id"=>{"$ne"=>"51af168d1e66cf7e74000017"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e74000012", "_id"=>{"$ne"=>"51af168d1e66cf7e74000017"}}, "$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={"_id"=>{"$in"=>[]}} 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"=>"51af168d1e66cf7e74000017", "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"=>"51af168d1e66cf7e74000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e74000012", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e74000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168d1e66cf7e74000017"}, "$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"=>["51af168d1e66cf7e74000017"]}} 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"=>"51af168d1e66cf7e74000017"}, "$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"=>"51af168d1e66cf7e74000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af168d1e66cf7e74000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e74000017", "_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.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.8900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2372ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8149ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.7691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af168d1e66cf7e7400001a", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e852f39d2bb07bb9a5ea5bd1d15fab33702a0768", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"xEp3j9hq33h7qBagxqjT", "api_key"=>"285758b390d7a3a62cc712da2cf5aa279f1a12cb", "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} 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_sites documents=[{"_id"=>"51af168d1e66cf7e7400001b", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:44:28 UTC, "updated_at"=>2013-06-05 10:44:29 UTC, "memberships"=>[{"_id"=>"51af168d1e66cf7e7400001c", "role"=>"admin", "account_id"=>"51af168d1e66cf7e7400001a"}]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af168d1e66cf7e7400001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6742ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400001b", "_id"=>{"$ne"=>"51af168d1e66cf7e7400001d"}}} (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af168d1e66cf7e7400001d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af168d1e66cf7e7400001b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e7400001b", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e7400001d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168d1e66cf7e7400001d"}, "$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"=>["51af168d1e66cf7e7400001d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e7400001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af168d1e66cf7e7400001e", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af168d1e66cf7e7400001b"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e7400001d", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af168d1e66cf7e7400001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400001b", "_id"=>{"$ne"=>"51af168d1e66cf7e7400001f"}}} (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400001b", "_id"=>{"$ne"=>"51af168d1e66cf7e7400001f"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400001b", "_id"=>{"$ne"=>"51af168d1e66cf7e7400001f"}}, "$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"=>"51af168d1e66cf7e7400001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af168d1e66cf7e7400001b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e7400001b", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e7400001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168d1e66cf7e7400001f"}, "$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"=>["51af168d1e66cf7e7400001f"]}} 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_content_types selector={"site_id"=>"51af168d1e66cf7e7400001b", "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"=>"51af168d1e66cf7e74000020", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af168d1e66cf7e7400001b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af168d1e66cf7e74000021", "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC, "entries_custom_fields"=>[{"_id"=>"51af168d1e66cf7e74000021", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af168d1e66cf7e74000020"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af168d1e66cf7e74000022", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}}} flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af168d1e66cf7e74000023"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af168d1e66cf7e74000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3934ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af168d1e66cf7e74000020", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3290ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af168d1e66cf7e74000020"]}}} (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af168d1e66cf7e74000023", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af168d1e66cf7e74000020", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af168d1e66cf7e74000020", "content_type_id"=>"51af168d1e66cf7e74000020", "_slug"=>"findable-entry", "site_id"=>"51af168d1e66cf7e7400001b", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 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::ContentEntry51af168d1e66cf7e74000020", "_original_id"=>"51af168d1e66cf7e74000023"}, "$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"=>"51af168d1e66cf7e74000024", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af168d1e66cf7e7400001b", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af168d1e66cf7e74000020", "_original_id"=>"51af168d1e66cf7e74000023", "_keywords"=>["findable", "entry"]}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af168d1e66cf7e74000025"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af168d1e66cf7e74000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af168d1e66cf7e74000020", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af168d1e66cf7e74000020"]}}} (0.3381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af168d1e66cf7e74000020"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5100ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af168d1e66cf7e74000025", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af168d1e66cf7e74000020", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af168d1e66cf7e74000020", "content_type_id"=>"51af168d1e66cf7e74000020", "_slug"=>"hidden", "site_id"=>"51af168d1e66cf7e7400001b", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 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::ContentEntry51af168d1e66cf7e74000020", "_original_id"=>"51af168d1e66cf7e74000025"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af168d1e66cf7e74000026", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af168d1e66cf7e7400001b", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af168d1e66cf7e74000020", "_original_id"=>"51af168d1e66cf7e74000025", "_keywords"=>["hidden"]}] flags=[] (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.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af168d1e66cf7e7400001b", "parent_id"=>"51af168d1e66cf7e7400001d", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4668ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af168d1e66cf7e7400001d", "site_id"=>"51af168d1e66cf7e7400001b", "_id"=>{"$ne"=>"51af168d1e66cf7e74000027"}}} (0.6464ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af168d1e66cf7e7400001d"]}} 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"=>"51af168d1e66cf7e74000027", "parent_ids"=>["51af168d1e66cf7e7400001d"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af168d1e66cf7e7400001b", "parent_id"=>"51af168d1e66cf7e7400001d", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e7400001b", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e74000027"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3426ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168d1e66cf7e74000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af168d1e66cf7e74000027"]}} 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"=>"51af168d1e66cf7e74000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af168d1e66cf7e74000028", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af168d1e66cf7e7400001b"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e74000027", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af168d1e66cf7e7400001b", "parent_id"=>"51af168d1e66cf7e7400001d", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3808ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af168d1e66cf7e7400001d", "site_id"=>"51af168d1e66cf7e7400001b", "_id"=>{"$ne"=>"51af168d1e66cf7e74000029"}}} (0.4883ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168d1e66cf7e7400001d", "site_id"=>"51af168d1e66cf7e7400001b", "_id"=>{"$ne"=>"51af168d1e66cf7e74000029"}}, "$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"=>"51af168d1e66cf7e7400001d", "site_id"=>"51af168d1e66cf7e7400001b", "_id"=>{"$ne"=>"51af168d1e66cf7e74000029"}}, "$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={"_id"=>{"$in"=>["51af168d1e66cf7e7400001d"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af168d1e66cf7e74000029", "parent_ids"=>["51af168d1e66cf7e7400001d"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af168d1e66cf7e7400001b", "parent_id"=>"51af168d1e66cf7e7400001d", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e7400001b", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e74000029"]}}, "$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"=>"51af168d1e66cf7e74000029"}, "$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"=>["51af168d1e66cf7e74000029"]}} 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"=>"51af168d1e66cf7e74000029"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3083ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af168d1e66cf7e7400002a", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af168d1e66cf7e7400001b"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e74000029", "_keywords"=>["en:search"]}] flags=[] (0.1142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e7400001b", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"51af168d1e66cf7e7400001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4122ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af168d1e66cf7e7400001d"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 10:44:29 UTC}} flags=[] (0.1009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e7400001b", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e7400001d"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e7400001d"}, "$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"=>"51af168d1e66cf7e7400001e"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af168d1e66cf7e7400001b"}}} flags=[] (0.0999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af168d1e66cf7e7400002b", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 10:44:28 UTC, "updated_at"=>2013-06-05 10:44:29 UTC, "memberships"=>[{"_id"=>"51af168d1e66cf7e7400002c", "role"=>"admin", "account_id"=>"51af168d1e66cf7e7400001a"}]}] flags=[] (0.1352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af168d1e66cf7e7400002b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (57.6689ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400002b", "_id"=>{"$ne"=>"51af168d1e66cf7e7400002d"}}} (0.5839ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af168d1e66cf7e7400002d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af168d1e66cf7e7400002b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e7400002b", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e7400002d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168d1e66cf7e7400002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2732ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af168d1e66cf7e7400002d"]}} 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"=>"51af168d1e66cf7e7400002d"}, "$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"=>"51af168d1e66cf7e7400002e", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af168d1e66cf7e7400002b"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e7400002d", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af168d1e66cf7e7400002b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5751ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400002b", "_id"=>{"$ne"=>"51af168d1e66cf7e7400002f"}}} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400002b", "_id"=>{"$ne"=>"51af168d1e66cf7e7400002f"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400002b", "_id"=>{"$ne"=>"51af168d1e66cf7e7400002f"}}, "$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"=>"51af168d1e66cf7e7400002f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af168d1e66cf7e7400002b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e7400002b", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e7400002f"]}}, "$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"=>"51af168d1e66cf7e7400002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2871ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af168d1e66cf7e7400002f"]}} 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"=>"51af168d1e66cf7e7400002b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4659ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400002b", "_id"=>{"$ne"=>"51af168d1e66cf7e74000030"}}} (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400002b", "_id"=>{"$ne"=>"51af168d1e66cf7e74000030"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af168d1e66cf7e7400002b", "_id"=>{"$ne"=>"51af168d1e66cf7e74000030"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} 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"=>"51af168d1e66cf7e74000030", "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"=>"51af168d1e66cf7e7400002b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:44:29 UTC, "created_at"=>2013-06-05 10:44:29 UTC}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af168d1e66cf7e7400002b", "template_dependencies.en"=>{"$in"=>["51af168d1e66cf7e74000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af168d1e66cf7e74000030"}, "$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"=>["51af168d1e66cf7e74000030"]}} 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"=>"51af168d1e66cf7e74000030"}, "$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"=>"51af168d1e66cf7e74000031", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af168d1e66cf7e7400002b"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af168d1e66cf7e74000030", "_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.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5612ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4120ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4632ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4978ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4740ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9210ms) MOPED: 127.0.0.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) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2451ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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_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_accounts selector={"email"=>"admin@locomotiveapp.org"} 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_accounts documents=[{"_id"=>"51af16c11e66cf3752000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2fb7a84ab3f0f91b71dea5eecae025d1f8267491", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"3eXeBm7oJssg6Q2sz2Xb", "api_key"=>"9cd66b489c186dec197e24ef678057755760d3cc", "updated_at"=>2013-06-05 10:45:21 UTC, "created_at"=>2013-06-05 10:45:21 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8938ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af16c11e66cf3752000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:45:21 UTC, "updated_at"=>2013-06-05 10:45:21 UTC, "memberships"=>[{"_id"=>"51af16c11e66cf3752000003", "role"=>"admin", "account_id"=>"51af16c11e66cf3752000001"}]}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6042ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1311ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.1802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af16c11e66cf3752000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af16c11e66cf3752000002", "_id"=>{"$ne"=>"51af16c11e66cf3752000004"}}} (0.5088ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af16c11e66cf3752000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af16c11e66cf3752000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:21 UTC, "created_at"=>2013-06-05 10:45:21 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af16c11e66cf3752000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c11e66cf3752000002", "template_dependencies.en"=>{"$in"=>["51af16c11e66cf3752000004"]}}, "$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"=>["51af16c11e66cf3752000004"]}} 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"=>"51af16c11e66cf3752000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af16c11e66cf3752000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af16c11e66cf3752000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c11e66cf3752000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af16c11e66cf3752000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4082ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af16c11e66cf3752000002", "_id"=>{"$ne"=>"51af16c11e66cf3752000006"}}} (0.6521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af16c11e66cf3752000002", "_id"=>{"$ne"=>"51af16c11e66cf3752000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5097ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af16c11e66cf3752000002", "_id"=>{"$ne"=>"51af16c11e66cf3752000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af16c11e66cf3752000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af16c11e66cf3752000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:21 UTC, "created_at"=>2013-06-05 10:45:21 UTC}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c11e66cf3752000002", "template_dependencies.en"=>{"$in"=>["51af16c11e66cf3752000006"]}}, "$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"=>"51af16c11e66cf3752000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2801ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af16c11e66cf3752000006"]}} 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"=>"51af16c11e66cf3752000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af16c11e66cf3752000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af16c11e66cf3752000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af16c21e66cf3752000008", "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC, "entries_custom_fields"=>[{"_id"=>"51af16c21e66cf3752000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af16c11e66cf3752000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af16c21e66cf3752000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}}} flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af16c21e66cf375200000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af16c11e66cf3752000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6173ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af16c11e66cf3752000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af16c11e66cf3752000007"]}}} (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af16c21e66cf375200000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af16c11e66cf3752000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af16c11e66cf3752000007", "content_type_id"=>"51af16c11e66cf3752000007", "_slug"=>"findable-entry", "site_id"=>"51af16c11e66cf3752000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af16c11e66cf3752000007", "_original_id"=>"51af16c21e66cf375200000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4373ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af16c21e66cf375200000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af16c11e66cf3752000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af16c11e66cf3752000007", "_original_id"=>"51af16c21e66cf375200000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af16c21e66cf375200000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af16c11e66cf3752000007"]}} 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_content_entries selector={"content_type_id"=>"51af16c11e66cf3752000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2508ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af16c11e66cf3752000007"]}}} (0.2441ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af16c11e66cf3752000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af16c21e66cf375200000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af16c11e66cf3752000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af16c11e66cf3752000007", "content_type_id"=>"51af16c11e66cf3752000007", "_slug"=>"hidden", "site_id"=>"51af16c11e66cf3752000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af16c11e66cf3752000007", "_original_id"=>"51af16c21e66cf375200000c"}, "$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"=>"51af16c21e66cf375200000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af16c11e66cf3752000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af16c11e66cf3752000007", "_original_id"=>"51af16c21e66cf375200000c", "_keywords"=>["hidden"]}] flags=[] (0.1030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af16c11e66cf3752000002", "parent_id"=>"51af16c11e66cf3752000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6471ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af16c11e66cf3752000004", "site_id"=>"51af16c11e66cf3752000002", "_id"=>{"$ne"=>"51af16c21e66cf375200000e"}}} (0.6878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af16c11e66cf3752000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af16c21e66cf375200000e", "parent_ids"=>["51af16c11e66cf3752000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af16c11e66cf3752000002", "parent_id"=>"51af16c11e66cf3752000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c11e66cf3752000002", "template_dependencies.en"=>{"$in"=>["51af16c21e66cf375200000e"]}}, "$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"=>"51af16c21e66cf375200000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af16c21e66cf375200000e"]}} 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"=>"51af16c21e66cf375200000e"}, "$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"=>"51af16c21e66cf375200000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af16c11e66cf3752000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c21e66cf375200000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af16c11e66cf3752000002", "parent_id"=>"51af16c11e66cf3752000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af16c11e66cf3752000004", "site_id"=>"51af16c11e66cf3752000002", "_id"=>{"$ne"=>"51af16c21e66cf3752000010"}}} (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af16c11e66cf3752000004", "site_id"=>"51af16c11e66cf3752000002", "_id"=>{"$ne"=>"51af16c21e66cf3752000010"}}, "$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"=>{"parent_id"=>"51af16c11e66cf3752000004", "site_id"=>"51af16c11e66cf3752000002", "_id"=>{"$ne"=>"51af16c21e66cf3752000010"}}, "$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={"_id"=>{"$in"=>["51af16c11e66cf3752000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af16c21e66cf3752000010", "parent_ids"=>["51af16c11e66cf3752000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af16c11e66cf3752000002", "parent_id"=>"51af16c11e66cf3752000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c11e66cf3752000002", "template_dependencies.en"=>{"$in"=>["51af16c21e66cf3752000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af16c21e66cf3752000010"}, "$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"=>["51af16c21e66cf3752000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c21e66cf3752000010"}, "$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"=>"51af16c21e66cf3752000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af16c11e66cf3752000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c21e66cf3752000010", "_keywords"=>["en:search"]}] flags=[] (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c11e66cf3752000002", "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_sites selector={"$query"=>{"_id"=>"51af16c11e66cf3752000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5398ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9272ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.7071ms) 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"} (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2542ms) MOPED: 127.0.0.1:27017 QUERY 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"=>"51af16c21e66cf3752000012", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"fb27993dfcca41403618b96558a6e67e1252ab11", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"zYtczQ95SkzLPt9bbzqo", "api_key"=>"386a6ec7ca3f284e53abf60fd5fbf2ca928e9227", "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 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.5090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af16c21e66cf3752000013", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:45:21 UTC, "updated_at"=>2013-06-05 10:45:22 UTC, "memberships"=>[{"_id"=>"51af16c21e66cf3752000014", "role"=>"admin", "account_id"=>"51af16c21e66cf3752000012"}]}] flags=[] (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af16c21e66cf3752000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5262ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000013", "_id"=>{"$ne"=>"51af16c21e66cf3752000015"}}} (0.2801ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af16c21e66cf3752000015", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af16c21e66cf3752000013", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "template_dependencies.en"=>{"$in"=>["51af16c21e66cf3752000015"]}}, "$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"=>"51af16c21e66cf3752000015"}, "$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"=>["51af16c21e66cf3752000015"]}} 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"=>"51af16c21e66cf3752000015"}, "$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"=>"51af16c21e66cf3752000016", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af16c21e66cf3752000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c21e66cf3752000015", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af16c21e66cf3752000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4380ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000013", "_id"=>{"$ne"=>"51af16c21e66cf3752000017"}}} (0.5183ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000013", "_id"=>{"$ne"=>"51af16c21e66cf3752000017"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000013", "_id"=>{"$ne"=>"51af16c21e66cf3752000017"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af16c21e66cf3752000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af16c21e66cf3752000013", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "template_dependencies.en"=>{"$in"=>["51af16c21e66cf3752000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af16c21e66cf3752000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2570ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af16c21e66cf3752000017"]}} 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"=>"51af16c21e66cf3752000013", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.9570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af16c21e66cf3752000018", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af16c21e66cf3752000013", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af16c21e66cf3752000019", "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC, "entries_custom_fields"=>[{"_id"=>"51af16c21e66cf3752000019", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af16c21e66cf3752000018"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af16c21e66cf375200001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}}} flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af16c21e66cf375200001b"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af16c21e66cf3752000018"]}} 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_content_entries selector={"content_type_id"=>"51af16c21e66cf3752000018", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3190ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af16c21e66cf3752000018"]}}} (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af16c21e66cf375200001b", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af16c21e66cf3752000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af16c21e66cf3752000018", "content_type_id"=>"51af16c21e66cf3752000018", "_slug"=>"findable-entry", "site_id"=>"51af16c21e66cf3752000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af16c21e66cf3752000018", "_original_id"=>"51af16c21e66cf375200001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af16c21e66cf375200001c", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af16c21e66cf3752000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af16c21e66cf3752000018", "_original_id"=>"51af16c21e66cf375200001b", "_keywords"=>["findable", "entry"]}] flags=[] (0.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af16c21e66cf375200001d"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af16c21e66cf3752000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af16c21e66cf3752000018", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af16c21e66cf3752000018"]}}} (0.4361ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af16c21e66cf3752000018"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4673ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af16c21e66cf375200001d", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af16c21e66cf3752000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af16c21e66cf3752000018", "content_type_id"=>"51af16c21e66cf3752000018", "_slug"=>"hidden", "site_id"=>"51af16c21e66cf3752000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af16c21e66cf3752000018", "_original_id"=>"51af16c21e66cf375200001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af16c21e66cf375200001e", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af16c21e66cf3752000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af16c21e66cf3752000018", "_original_id"=>"51af16c21e66cf375200001d", "_keywords"=>["hidden"]}] flags=[] (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.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af16c21e66cf3752000013", "parent_id"=>"51af16c21e66cf3752000015", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3159ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af16c21e66cf3752000015", "site_id"=>"51af16c21e66cf3752000013", "_id"=>{"$ne"=>"51af16c21e66cf375200001f"}}} (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af16c21e66cf3752000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af16c21e66cf375200001f", "parent_ids"=>["51af16c21e66cf3752000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af16c21e66cf3752000013", "parent_id"=>"51af16c21e66cf3752000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "template_dependencies.en"=>{"$in"=>["51af16c21e66cf375200001f"]}}, "$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"=>"51af16c21e66cf375200001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2859ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af16c21e66cf375200001f"]}} 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"=>"51af16c21e66cf375200001f"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af16c21e66cf3752000020", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af16c21e66cf3752000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c21e66cf375200001f", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af16c21e66cf3752000013", "parent_id"=>"51af16c21e66cf3752000015", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af16c21e66cf3752000015", "site_id"=>"51af16c21e66cf3752000013", "_id"=>{"$ne"=>"51af16c21e66cf3752000021"}}} (0.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af16c21e66cf3752000015", "site_id"=>"51af16c21e66cf3752000013", "_id"=>{"$ne"=>"51af16c21e66cf3752000021"}}, "$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"=>"51af16c21e66cf3752000015", "site_id"=>"51af16c21e66cf3752000013", "_id"=>{"$ne"=>"51af16c21e66cf3752000021"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af16c21e66cf3752000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af16c21e66cf3752000021", "parent_ids"=>["51af16c21e66cf3752000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af16c21e66cf3752000013", "parent_id"=>"51af16c21e66cf3752000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "template_dependencies.en"=>{"$in"=>["51af16c21e66cf3752000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af16c21e66cf3752000021"}, "$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"=>["51af16c21e66cf3752000021"]}} 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"=>"51af16c21e66cf3752000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3102ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af16c21e66cf3752000022", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af16c21e66cf3752000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c21e66cf3752000021", "_keywords"=>["en:search"]}] flags=[] (0.1011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af16c21e66cf3752000013"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af16c21e66cf3752000015"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 10:45:22 UTC}} flags=[] (0.1011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "template_dependencies.en"=>{"$in"=>["51af16c21e66cf3752000015"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c21e66cf3752000015"}, "$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=active_search_mongoid_models selector={"_id"=>"51af16c21e66cf3752000016"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af16c21e66cf3752000013"}}} 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.4859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af16c21e66cf3752000023", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 10:45:21 UTC, "updated_at"=>2013-06-05 10:45:22 UTC, "memberships"=>[{"_id"=>"51af16c21e66cf3752000024", "role"=>"admin", "account_id"=>"51af16c21e66cf3752000012"}]}] flags=[] (0.1338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af16c21e66cf3752000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000023", "_id"=>{"$ne"=>"51af16c21e66cf3752000025"}}} (0.3920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af16c21e66cf3752000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af16c21e66cf3752000023", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000023", "template_dependencies.en"=>{"$in"=>["51af16c21e66cf3752000025"]}}, "$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"=>"51af16c21e66cf3752000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2627ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af16c21e66cf3752000025"]}} 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"=>"51af16c21e66cf3752000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af16c21e66cf3752000026", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af16c21e66cf3752000023"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c21e66cf3752000025", "_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"=>"51af16c21e66cf3752000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4389ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000023", "_id"=>{"$ne"=>"51af16c21e66cf3752000027"}}} (0.5302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000023", "_id"=>{"$ne"=>"51af16c21e66cf3752000027"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000023", "_id"=>{"$ne"=>"51af16c21e66cf3752000027"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"51af16c21e66cf3752000027", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af16c21e66cf3752000023", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000023", "template_dependencies.en"=>{"$in"=>["51af16c21e66cf3752000027"]}}, "$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"=>"51af16c21e66cf3752000027"}, "$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"=>["51af16c21e66cf3752000027"]}} 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"=>"51af16c21e66cf3752000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6759ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000023", "_id"=>{"$ne"=>"51af16c21e66cf3752000028"}}} (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000023", "_id"=>{"$ne"=>"51af16c21e66cf3752000028"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"51af16c21e66cf3752000023", "_id"=>{"$ne"=>"51af16c21e66cf3752000028"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af16c21e66cf3752000028", "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"=>"51af16c21e66cf3752000023", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000023", "template_dependencies.en"=>{"$in"=>["51af16c21e66cf3752000028"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af16c21e66cf3752000028"}, "$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"=>["51af16c21e66cf3752000028"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0877ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c21e66cf3752000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af16c21e66cf3752000029", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af16c21e66cf3752000023"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af16c21e66cf3752000028", "_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.1538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af16c21e66cf3752000023", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af16c21e66cf375200002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af16c21e66cf3752000023", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af16c21e66cf375200002b", "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 UTC, "entries_custom_fields"=>[{"_id"=>"51af16c21e66cf375200002b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af16c21e66cf375200002c"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af16c21e66cf375200002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af16c21e66cf375200002a", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af16c21e66cf375200002a"]}}} (0.4539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af16c21e66cf375200002c", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af16c21e66cf375200002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af16c21e66cf375200002a", "content_type_id"=>"51af16c21e66cf375200002a", "_slug"=>"not-findable-entry", "site_id"=>"51af16c21e66cf3752000023", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:45:22 UTC, "created_at"=>2013-06-05 10:45:22 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::ContentEntry51af16c21e66cf375200002a", "_original_id"=>"51af16c21e66cf375200002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af16c21e66cf375200002d", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af16c21e66cf3752000023", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af16c21e66cf375200002a", "_original_id"=>"51af16c21e66cf375200002c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1030ms) Started GET "/" for 127.0.0.1 at 2013-06-05 12:45:22 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5028ms) Rendered text template (0.0ms) Completed 200 OK in 126ms (Views: 121.1ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 12:45:22 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af16c21e66cf3752000013", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7751ms) Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 12:45:22 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "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.7269ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 12:45:22 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5121ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 12:45:22 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af16c21e66cf3752000013", "depth"=>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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af16c21e66cf3752000013", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2458ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4821ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5441ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4737ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4122ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3712ms) 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} (0.8471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8242ms) MOPED: 127.0.0.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.1953ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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.7131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} 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_accounts documents=[{"_id"=>"51af17791e66cfe5a2000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e30649cda363dc27ada3afc858bf78dc5c52e02a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"5qYmpzXNoqa7tXyyNPtb", "api_key"=>"1db992234db8df7ff22eefd8ef7f2ec0d739ae36", "updated_at"=>2013-06-05 10:48:25 UTC, "created_at"=>2013-06-05 10:48:25 UTC}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af17791e66cfe5a2000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:48:25 UTC, "updated_at"=>2013-06-05 10:48:25 UTC, "memberships"=>[{"_id"=>"51af17791e66cfe5a2000003", "role"=>"admin", "account_id"=>"51af17791e66cfe5a2000001"}]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17791e66cfe5a2000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af17791e66cfe5a2000002", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000004"}}} (0.3541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af177a1e66cfe5a2000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af17791e66cfe5a2000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af177a1e66cfe5a2000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17791e66cfe5a2000002", "template_dependencies.en"=>{"$in"=>["51af177a1e66cfe5a2000004"]}}, "$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"=>["51af177a1e66cfe5a2000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af177a1e66cfe5a2000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af177a1e66cfe5a2000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af17791e66cfe5a2000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af177a1e66cfe5a2000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17791e66cfe5a2000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af17791e66cfe5a2000002", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000006"}}} (0.7541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af17791e66cfe5a2000002", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"51af17791e66cfe5a2000002", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af177a1e66cfe5a2000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af17791e66cfe5a2000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17791e66cfe5a2000002", "template_dependencies.en"=>{"$in"=>["51af177a1e66cfe5a2000006"]}}, "$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"=>"51af177a1e66cfe5a2000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4911ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af177a1e66cfe5a2000006"]}} 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"=>"51af17791e66cfe5a2000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af177a1e66cfe5a2000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af17791e66cfe5a2000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af177a1e66cfe5a2000008", "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC, "entries_custom_fields"=>[{"_id"=>"51af177a1e66cfe5a2000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af177a1e66cfe5a2000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af177a1e66cfe5a2000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}}} flags=[] (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af177a1e66cfe5a200000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af177a1e66cfe5a2000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af177a1e66cfe5a2000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af177a1e66cfe5a2000007"]}}} (0.3724ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af177a1e66cfe5a200000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af177a1e66cfe5a2000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000007", "content_type_id"=>"51af177a1e66cfe5a2000007", "_slug"=>"findable-entry", "site_id"=>"51af17791e66cfe5a2000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000007", "_original_id"=>"51af177a1e66cfe5a200000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af177a1e66cfe5a200000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af17791e66cfe5a2000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000007", "_original_id"=>"51af177a1e66cfe5a200000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af177a1e66cfe5a200000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af177a1e66cfe5a2000007"]}} 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"=>"51af177a1e66cfe5a2000007", "_slug"=>"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::ContentEntry51af177a1e66cfe5a2000007"]}}} (0.3316ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af177a1e66cfe5a2000007"]}, "_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"=>"51af177a1e66cfe5a200000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af177a1e66cfe5a2000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000007", "content_type_id"=>"51af177a1e66cfe5a2000007", "_slug"=>"hidden", "site_id"=>"51af17791e66cfe5a2000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000007", "_original_id"=>"51af177a1e66cfe5a200000c"}, "$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"=>"51af177a1e66cfe5a200000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af17791e66cfe5a2000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000007", "_original_id"=>"51af177a1e66cfe5a200000c", "_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.6442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17791e66cfe5a2000002", "parent_id"=>"51af177a1e66cfe5a2000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af177a1e66cfe5a2000004", "site_id"=>"51af17791e66cfe5a2000002", "_id"=>{"$ne"=>"51af177a1e66cfe5a200000e"}}} (0.4022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af177a1e66cfe5a2000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af177a1e66cfe5a200000e", "parent_ids"=>["51af177a1e66cfe5a2000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af17791e66cfe5a2000002", "parent_id"=>"51af177a1e66cfe5a2000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17791e66cfe5a2000002", "template_dependencies.en"=>{"$in"=>["51af177a1e66cfe5a200000e"]}}, "$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"=>"51af177a1e66cfe5a200000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af177a1e66cfe5a200000e"]}} 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"=>"51af177a1e66cfe5a200000e"}, "$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"=>"51af177a1e66cfe5a200000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af17791e66cfe5a2000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af177a1e66cfe5a200000e", "_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.6549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17791e66cfe5a2000002", "parent_id"=>"51af177a1e66cfe5a2000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af177a1e66cfe5a2000004", "site_id"=>"51af17791e66cfe5a2000002", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000010"}}} (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af177a1e66cfe5a2000004", "site_id"=>"51af17791e66cfe5a2000002", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000010"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af177a1e66cfe5a2000004", "site_id"=>"51af17791e66cfe5a2000002", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000010"}}, "$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={"_id"=>{"$in"=>["51af177a1e66cfe5a2000004"]}} flags=[:slave_ok] 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"=>"51af177a1e66cfe5a2000010", "parent_ids"=>["51af177a1e66cfe5a2000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af17791e66cfe5a2000002", "parent_id"=>"51af177a1e66cfe5a2000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17791e66cfe5a2000002", "template_dependencies.en"=>{"$in"=>["51af177a1e66cfe5a2000010"]}}, "$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"=>"51af177a1e66cfe5a2000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af177a1e66cfe5a2000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af177a1e66cfe5a2000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af177a1e66cfe5a2000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af17791e66cfe5a2000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af177a1e66cfe5a2000010", "_keywords"=>["en:search"]}] flags=[] (0.1121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17791e66cfe5a2000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=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.0061ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1389ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1432ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.5310ms) 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.4609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af177a1e66cfe5a2000012", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"ad9ec5832ec10be052a7db6c0f3f838026682301", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ysMBfDSqRyusRqx47tvi", "api_key"=>"45ee54d3f9c7efee906146655cdb1648ac94dfc9", "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af177a1e66cfe5a2000013", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:48:25 UTC, "updated_at"=>2013-06-05 10:48:26 UTC, "memberships"=>[{"_id"=>"51af177a1e66cfe5a2000014", "role"=>"admin", "account_id"=>"51af177a1e66cfe5a2000012"}]}] flags=[] (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af177a1e66cfe5a2000013", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af177a1e66cfe5a2000013", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000015"}}} (0.3352ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af177a1e66cfe5a2000015", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af177a1e66cfe5a2000013", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af177a1e66cfe5a2000013", "template_dependencies.en"=>{"$in"=>["51af177a1e66cfe5a2000015"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af177a1e66cfe5a2000015"}, "$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"=>["51af177a1e66cfe5a2000015"]}} 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"=>"51af177a1e66cfe5a2000015"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af177a1e66cfe5a2000016", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af177a1e66cfe5a2000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af177a1e66cfe5a2000015", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af177a1e66cfe5a2000013", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af177a1e66cfe5a2000013", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000017"}}} (0.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af177a1e66cfe5a2000013", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000017"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af177a1e66cfe5a2000013", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000017"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af177a1e66cfe5a2000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af177a1e66cfe5a2000013", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af177a1e66cfe5a2000013", "template_dependencies.en"=>{"$in"=>["51af177a1e66cfe5a2000017"]}}, "$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"=>"51af177a1e66cfe5a2000017"}, "$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"=>["51af177a1e66cfe5a2000017"]}} 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"=>"51af177a1e66cfe5a2000013", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3383ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af177a1e66cfe5a2000018", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af177a1e66cfe5a2000013", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af177a1e66cfe5a2000019", "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC, "entries_custom_fields"=>[{"_id"=>"51af177a1e66cfe5a2000019", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1512ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af177a1e66cfe5a2000018"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af177a1e66cfe5a200001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}}} flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af177a1e66cfe5a200001b"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af177a1e66cfe5a2000018"]}} 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_content_entries selector={"content_type_id"=>"51af177a1e66cfe5a2000018", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3541ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af177a1e66cfe5a2000018"]}}} (0.3610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af177a1e66cfe5a200001b", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af177a1e66cfe5a2000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000018", "content_type_id"=>"51af177a1e66cfe5a2000018", "_slug"=>"findable-entry", "site_id"=>"51af177a1e66cfe5a2000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 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::ContentEntry51af177a1e66cfe5a2000018", "_original_id"=>"51af177a1e66cfe5a200001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5589ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af177a1e66cfe5a200001c", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af177a1e66cfe5a2000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000018", "_original_id"=>"51af177a1e66cfe5a200001b", "_keywords"=>["findable", "entry"]}] flags=[] (0.0989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af177a1e66cfe5a200001d"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af177a1e66cfe5a2000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af177a1e66cfe5a2000018", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af177a1e66cfe5a2000018"]}}} (0.3428ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af177a1e66cfe5a2000018"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.3929ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af177a1e66cfe5a200001d", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af177a1e66cfe5a2000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000018", "content_type_id"=>"51af177a1e66cfe5a2000018", "_slug"=>"hidden", "site_id"=>"51af177a1e66cfe5a2000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000018", "_original_id"=>"51af177a1e66cfe5a200001d"}, "$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"=>"51af177a1e66cfe5a200001e", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af177a1e66cfe5a2000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af177a1e66cfe5a2000018", "_original_id"=>"51af177a1e66cfe5a200001d", "_keywords"=>["hidden"]}] flags=[] (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.6208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af177a1e66cfe5a2000013", "parent_id"=>"51af177a1e66cfe5a2000015", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af177a1e66cfe5a2000015", "site_id"=>"51af177a1e66cfe5a2000013", "_id"=>{"$ne"=>"51af177a1e66cfe5a200001f"}}} (0.5038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af177a1e66cfe5a2000015"]}} 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"=>"51af177a1e66cfe5a200001f", "parent_ids"=>["51af177a1e66cfe5a2000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af177a1e66cfe5a2000013", "parent_id"=>"51af177a1e66cfe5a2000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af177a1e66cfe5a2000013", "template_dependencies.en"=>{"$in"=>["51af177a1e66cfe5a200001f"]}}, "$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"=>"51af177a1e66cfe5a200001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2420ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af177a1e66cfe5a200001f"]}} 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"=>"51af177a1e66cfe5a200001f"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af177a1e66cfe5a2000020", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af177a1e66cfe5a2000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af177a1e66cfe5a200001f", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1333ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af177a1e66cfe5a2000013", "parent_id"=>"51af177a1e66cfe5a2000015", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af177a1e66cfe5a2000015", "site_id"=>"51af177a1e66cfe5a2000013", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000021"}}} (0.7212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af177a1e66cfe5a2000015", "site_id"=>"51af177a1e66cfe5a2000013", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000021"}}, "$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"=>"51af177a1e66cfe5a2000015", "site_id"=>"51af177a1e66cfe5a2000013", "_id"=>{"$ne"=>"51af177a1e66cfe5a2000021"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af177a1e66cfe5a2000015"]}} 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"=>"51af177a1e66cfe5a2000021", "parent_ids"=>["51af177a1e66cfe5a2000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af177a1e66cfe5a2000013", "parent_id"=>"51af177a1e66cfe5a2000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:48:26 UTC, "created_at"=>2013-06-05 10:48:26 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af177a1e66cfe5a2000013", "template_dependencies.en"=>{"$in"=>["51af177a1e66cfe5a2000021"]}}, "$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"=>"51af177a1e66cfe5a2000021"}, "$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"=>["51af177a1e66cfe5a2000021"]}} 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"=>"51af177a1e66cfe5a2000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3438ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af177a1e66cfe5a2000022", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af177a1e66cfe5a2000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af177a1e66cfe5a2000021", "_keywords"=>["en:search"]}] flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af177a1e66cfe5a2000013", "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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5870ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4082ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4089ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.3951ms) 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.3951ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9472ms) MOPED: 127.0.0.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.5372ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8879ms) MOPED: 127.0.0.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.2491ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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.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.5128ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af17a21e66cf227f000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"ede1cd0664fc89f9137ccecbbaed1568f2a9ab0e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"uHxeueApTngApet7qJdT", "api_key"=>"0cb92c4f7fd94649e5ee8963730151dc2f714d7f", "updated_at"=>2013-06-05 10:49:06 UTC, "created_at"=>2013-06-05 10:49:06 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} (0.8669ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af17a21e66cf227f000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:49:06 UTC, "updated_at"=>2013-06-05 10:49:06 UTC, "memberships"=>[{"_id"=>"51af17a21e66cf227f000003", "role"=>"admin", "account_id"=>"51af17a21e66cf227f000001"}]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2708ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17a21e66cf227f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0788ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af17a21e66cf227f000002", "_id"=>{"$ne"=>"51af17a31e66cf227f000004"}}} (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af17a31e66cf227f000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af17a21e66cf227f000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af17a31e66cf227f000004"}, "$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"=>{"site_id"=>"51af17a21e66cf227f000002", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f000004"]}}, "$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"=>["51af17a31e66cf227f000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1333ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000004"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af17a31e66cf227f000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af17a21e66cf227f000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17a21e66cf227f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4349ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af17a21e66cf227f000002", "_id"=>{"$ne"=>"51af17a31e66cf227f000006"}}} (0.7191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af17a21e66cf227f000002", "_id"=>{"$ne"=>"51af17a31e66cf227f000006"}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af17a21e66cf227f000002", "_id"=>{"$ne"=>"51af17a31e66cf227f000006"}}, "$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"=>"51af17a31e66cf227f000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af17a21e66cf227f000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a21e66cf227f000002", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f000006"]}}, "$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"=>"51af17a31e66cf227f000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2942ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af17a31e66cf227f000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af17a21e66cf227f000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7472ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af17a31e66cf227f000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af17a21e66cf227f000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af17a31e66cf227f000008", "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC, "entries_custom_fields"=>[{"_id"=>"51af17a31e66cf227f000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af17a31e66cf227f000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af17a31e66cf227f000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}}} flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af17a31e66cf227f00000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af17a31e66cf227f000007", "_slug"=>"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::ContentEntry51af17a31e66cf227f000007"]}}} (0.3490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af17a31e66cf227f00000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af17a31e66cf227f000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af17a31e66cf227f000007", "content_type_id"=>"51af17a31e66cf227f000007", "_slug"=>"findable-entry", "site_id"=>"51af17a21e66cf227f000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af17a31e66cf227f000007", "_original_id"=>"51af17a31e66cf227f00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af17a31e66cf227f00000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af17a21e66cf227f000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af17a31e66cf227f000007", "_original_id"=>"51af17a31e66cf227f00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af17a31e66cf227f00000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af17a31e66cf227f000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2089ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f000007"]}}} (0.3343ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4628ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af17a31e66cf227f00000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af17a31e66cf227f000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af17a31e66cf227f000007", "content_type_id"=>"51af17a31e66cf227f000007", "_slug"=>"hidden", "site_id"=>"51af17a21e66cf227f000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 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::ContentEntry51af17a31e66cf227f000007", "_original_id"=>"51af17a31e66cf227f00000c"}, "$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"=>"51af17a31e66cf227f00000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af17a21e66cf227f000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af17a31e66cf227f000007", "_original_id"=>"51af17a31e66cf227f00000c", "_keywords"=>["hidden"]}] flags=[] (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.7582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17a21e66cf227f000002", "parent_id"=>"51af17a31e66cf227f000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4039ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af17a31e66cf227f000004", "site_id"=>"51af17a21e66cf227f000002", "_id"=>{"$ne"=>"51af17a31e66cf227f00000e"}}} (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af17a31e66cf227f000004"]}} flags=[:slave_ok] 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"=>"51af17a31e66cf227f00000e", "parent_ids"=>["51af17a31e66cf227f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af17a21e66cf227f000002", "parent_id"=>"51af17a31e66cf227f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a21e66cf227f000002", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f00000e"]}}, "$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"=>"51af17a31e66cf227f00000e"}, "$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"=>["51af17a31e66cf227f00000e"]}} 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"=>"51af17a31e66cf227f00000e"}, "$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"=>"51af17a31e66cf227f00000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af17a21e66cf227f000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f00000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17a21e66cf227f000002", "parent_id"=>"51af17a31e66cf227f000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4430ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af17a31e66cf227f000004", "site_id"=>"51af17a21e66cf227f000002", "_id"=>{"$ne"=>"51af17a31e66cf227f000010"}}} (0.5772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af17a31e66cf227f000004", "site_id"=>"51af17a21e66cf227f000002", "_id"=>{"$ne"=>"51af17a31e66cf227f000010"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af17a31e66cf227f000004", "site_id"=>"51af17a21e66cf227f000002", "_id"=>{"$ne"=>"51af17a31e66cf227f000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5703ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af17a31e66cf227f000004"]}} flags=[:slave_ok] limit=0 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"=>"51af17a31e66cf227f000010", "parent_ids"=>["51af17a31e66cf227f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af17a21e66cf227f000002", "parent_id"=>"51af17a31e66cf227f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a21e66cf227f000002", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f000010"]}}, "$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"=>"51af17a31e66cf227f000010"}, "$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"=>["51af17a31e66cf227f000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000010"}, "$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"=>"51af17a31e66cf227f000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af17a21e66cf227f000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000010", "_keywords"=>["en:search"]}] flags=[] (0.1099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a21e66cf227f000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af17a21e66cf227f000002"}, "$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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8872ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.7780ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8140ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2313ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af17a31e66cf227f000012", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f77627f7c0b549ae28ab543f6df97b5ca3f00a20", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"7TVYyJAvxCLS3WBxTTrZ", "api_key"=>"a7d6d24feeb3b17239459649ad15301de7648125", "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af17a31e66cf227f000013", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:49:06 UTC, "updated_at"=>2013-06-05 10:49:07 UTC, "memberships"=>[{"_id"=>"51af17a31e66cf227f000014", "role"=>"admin", "account_id"=>"51af17a31e66cf227f000012"}]}] flags=[] (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17a31e66cf227f000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000013", "_id"=>{"$ne"=>"51af17a31e66cf227f000015"}}} (0.3440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af17a31e66cf227f000015", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af17a31e66cf227f000013", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f000015"]}}, "$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"=>"51af17a31e66cf227f000015"}, "$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"=>["51af17a31e66cf227f000015"]}} 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"=>"51af17a31e66cf227f000015"}, "$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"=>"51af17a31e66cf227f000016", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af17a31e66cf227f000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000015", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1163ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17a31e66cf227f000013", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000013", "_id"=>{"$ne"=>"51af17a31e66cf227f000017"}}} (0.6082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000013", "_id"=>{"$ne"=>"51af17a31e66cf227f000017"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000013", "_id"=>{"$ne"=>"51af17a31e66cf227f000017"}}, "$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"=>"51af17a31e66cf227f000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af17a31e66cf227f000013", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f000017"]}}, "$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"=>"51af17a31e66cf227f000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2329ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af17a31e66cf227f000017"]}} 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"=>"51af17a31e66cf227f000013", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af17a31e66cf227f000018", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af17a31e66cf227f000013", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af17a31e66cf227f000019", "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC, "entries_custom_fields"=>[{"_id"=>"51af17a31e66cf227f000019", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af17a31e66cf227f000018"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af17a31e66cf227f00001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}}} flags=[] (0.1748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af17a31e66cf227f00001b"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f000018"]}} 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_content_entries selector={"content_type_id"=>"51af17a31e66cf227f000018", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3181ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f000018"]}}} (0.3631ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af17a31e66cf227f00001b", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af17a31e66cf227f000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af17a31e66cf227f000018", "content_type_id"=>"51af17a31e66cf227f000018", "_slug"=>"findable-entry", "site_id"=>"51af17a31e66cf227f000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af17a31e66cf227f000018", "_original_id"=>"51af17a31e66cf227f00001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af17a31e66cf227f00001c", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af17a31e66cf227f000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af17a31e66cf227f000018", "_original_id"=>"51af17a31e66cf227f00001b", "_keywords"=>["findable", "entry"]}] flags=[] (0.1099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af17a31e66cf227f00001d"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4873ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af17a31e66cf227f000018", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2820ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f000018"]}}} (0.3190ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f000018"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4940ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af17a31e66cf227f00001d", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af17a31e66cf227f000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af17a31e66cf227f000018", "content_type_id"=>"51af17a31e66cf227f000018", "_slug"=>"hidden", "site_id"=>"51af17a31e66cf227f000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 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::ContentEntry51af17a31e66cf227f000018", "_original_id"=>"51af17a31e66cf227f00001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af17a31e66cf227f00001e", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af17a31e66cf227f000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af17a31e66cf227f000018", "_original_id"=>"51af17a31e66cf227f00001d", "_keywords"=>["hidden"]}] flags=[] (0.0987ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test 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"=>"51af17a31e66cf227f000013", "parent_id"=>"51af17a31e66cf227f000015", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4518ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af17a31e66cf227f000015", "site_id"=>"51af17a31e66cf227f000013", "_id"=>{"$ne"=>"51af17a31e66cf227f00001f"}}} (0.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af17a31e66cf227f000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4818ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af17a31e66cf227f00001f", "parent_ids"=>["51af17a31e66cf227f000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af17a31e66cf227f000013", "parent_id"=>"51af17a31e66cf227f000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f00001f"]}}, "$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"=>"51af17a31e66cf227f00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af17a31e66cf227f00001f"]}} 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"=>"51af17a31e66cf227f00001f"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af17a31e66cf227f000020", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af17a31e66cf227f000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f00001f", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6163ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17a31e66cf227f000013", "parent_id"=>"51af17a31e66cf227f000015", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af17a31e66cf227f000015", "site_id"=>"51af17a31e66cf227f000013", "_id"=>{"$ne"=>"51af17a31e66cf227f000021"}}} (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af17a31e66cf227f000015", "site_id"=>"51af17a31e66cf227f000013", "_id"=>{"$ne"=>"51af17a31e66cf227f000021"}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"51af17a31e66cf227f000015", "site_id"=>"51af17a31e66cf227f000013", "_id"=>{"$ne"=>"51af17a31e66cf227f000021"}}, "$orderby"=>{"position"=>-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={"_id"=>{"$in"=>["51af17a31e66cf227f000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af17a31e66cf227f000021", "parent_ids"=>["51af17a31e66cf227f000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af17a31e66cf227f000013", "parent_id"=>"51af17a31e66cf227f000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f000021"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"51af17a31e66cf227f000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af17a31e66cf227f000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af17a31e66cf227f000022", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af17a31e66cf227f000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000021", "_keywords"=>["en:search"]}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af17a31e66cf227f000013"}, "$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"=>"51af17a31e66cf227f000015"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 10:49:07 UTC}} flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f000015"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000015"}, "$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"=>"51af17a31e66cf227f000016"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af17a31e66cf227f000013"}}} flags=[] (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0307ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af17a31e66cf227f000023", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 10:49:06 UTC, "updated_at"=>2013-06-05 10:49:07 UTC, "memberships"=>[{"_id"=>"51af17a31e66cf227f000024", "role"=>"admin", "account_id"=>"51af17a31e66cf227f000012"}]}] flags=[] (0.1299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17a31e66cf227f000023", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000023", "_id"=>{"$ne"=>"51af17a31e66cf227f000025"}}} (0.5682ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af17a31e66cf227f000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af17a31e66cf227f000023", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000023", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4363ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af17a31e66cf227f000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af17a31e66cf227f000025"]}} 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"=>"51af17a31e66cf227f000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2763ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af17a31e66cf227f000026", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af17a31e66cf227f000023"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000025", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17a31e66cf227f000023", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000023", "_id"=>{"$ne"=>"51af17a31e66cf227f000027"}}} (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000023", "_id"=>{"$ne"=>"51af17a31e66cf227f000027"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000023", "_id"=>{"$ne"=>"51af17a31e66cf227f000027"}}, "$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"=>"51af17a31e66cf227f000027", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af17a31e66cf227f000023", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000023", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f000027"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af17a31e66cf227f000027"}, "$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"=>["51af17a31e66cf227f000027"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af17a31e66cf227f000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4532ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000023", "_id"=>{"$ne"=>"51af17a31e66cf227f000028"}}} (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000023", "_id"=>{"$ne"=>"51af17a31e66cf227f000028"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af17a31e66cf227f000023", "_id"=>{"$ne"=>"51af17a31e66cf227f000028"}}, "$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={"_id"=>{"$in"=>[]}} 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"=>"51af17a31e66cf227f000028", "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"=>"51af17a31e66cf227f000023", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000023", "template_dependencies.en"=>{"$in"=>["51af17a31e66cf227f000028"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af17a31e66cf227f000028"}, "$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"=>["51af17a31e66cf227f000028"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000028"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af17a31e66cf227f000029", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af17a31e66cf227f000023"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af17a31e66cf227f000028", "_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.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af17a31e66cf227f000023", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2739ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af17a31e66cf227f00002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af17a31e66cf227f000023", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af17a31e66cf227f00002b", "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 UTC, "entries_custom_fields"=>[{"_id"=>"51af17a31e66cf227f00002b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af17a31e66cf227f00002c"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f00002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af17a31e66cf227f00002a", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af17a31e66cf227f00002a"]}}} (0.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af17a31e66cf227f00002c", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af17a31e66cf227f00002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af17a31e66cf227f00002a", "content_type_id"=>"51af17a31e66cf227f00002a", "_slug"=>"not-findable-entry", "site_id"=>"51af17a31e66cf227f000023", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:49:07 UTC, "created_at"=>2013-06-05 10:49:07 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::ContentEntry51af17a31e66cf227f00002a", "_original_id"=>"51af17a31e66cf227f00002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af17a31e66cf227f00002d", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af17a31e66cf227f000023", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af17a31e66cf227f00002a", "_original_id"=>"51af17a31e66cf227f00002c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1171ms) Started GET "/" for 127.0.0.1 at 2013-06-05 12:49:07 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5920ms) Rendered text template (0.0ms) Completed 200 OK in 77ms (Views: 72.2ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 12:49:07 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af17a31e66cf227f000013", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7529ms) Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 12:49:07 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6185ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "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 3ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 12:49:07 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6740ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 12:49:07 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af17a31e66cf227f000013", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af17a31e66cf227f000013", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4992ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0591ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.8898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4859ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3741ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0991ms) MOPED: 127.0.0.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.5701ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0130ms) MOPED: 127.0.0.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.2460ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1a001e66cfe48b000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"a3dfe24ad90575cb2f3b85f23434e71d683477a0", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Rsd2mwsVwP9Er8gYgtG7", "api_key"=>"0f3c17092aad57ed5db62a77af349f9900a76cb8", "updated_at"=>2013-06-05 10:59:12 UTC, "created_at"=>2013-06-05 10:59:12 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} (0.7529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1a001e66cfe48b000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:59:12 UTC, "updated_at"=>2013-06-05 10:59:12 UTC, "memberships"=>[{"_id"=>"51af1a001e66cfe48b000003", "role"=>"admin", "account_id"=>"51af1a001e66cfe48b000001"}]}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5939ms) 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.1778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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={"site_id"=>"51af1a001e66cfe48b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8149ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1a001e66cfe48b000002", "_id"=>{"$ne"=>"51af1a011e66cfe48b000004"}}} (0.3130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1a001e66cfe48b000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1a011e66cfe48b000004"}, "$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"=>{"site_id"=>"51af1a001e66cfe48b000002", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000004"]}}, "$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"=>["51af1a011e66cfe48b000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1a001e66cfe48b000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000004", "_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"=>"51af1a001e66cfe48b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4320ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1a001e66cfe48b000002", "_id"=>{"$ne"=>"51af1a011e66cfe48b000006"}}} (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a001e66cfe48b000002", "_id"=>{"$ne"=>"51af1a011e66cfe48b000006"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a001e66cfe48b000002", "_id"=>{"$ne"=>"51af1a011e66cfe48b000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1a001e66cfe48b000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a001e66cfe48b000002", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000006"]}}, "$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"=>"51af1a011e66cfe48b000006"}, "$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"=>["51af1a011e66cfe48b000006"]}} 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_content_types selector={"site_id"=>"51af1a001e66cfe48b000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1a011e66cfe48b000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1a001e66cfe48b000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1a011e66cfe48b000008", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC, "entries_custom_fields"=>[{"_id"=>"51af1a011e66cfe48b000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2146ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1a011e66cfe48b000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1a011e66cfe48b000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}}} flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1a011e66cfe48b00000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1a011e66cfe48b000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3490ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000007"]}}} (0.4630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1a011e66cfe48b00000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1a011e66cfe48b000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000007", "content_type_id"=>"51af1a011e66cfe48b000007", "_slug"=>"findable-entry", "site_id"=>"51af1a001e66cfe48b000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 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::ContentEntry51af1a011e66cfe48b000007", "_original_id"=>"51af1a011e66cfe48b00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4942ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b00000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1a001e66cfe48b000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000007", "_original_id"=>"51af1a011e66cfe48b00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1a011e66cfe48b00000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000007"]}} 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_content_entries selector={"content_type_id"=>"51af1a011e66cfe48b000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000007"]}}} (0.3519ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.3901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1a011e66cfe48b00000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1a011e66cfe48b000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000007", "content_type_id"=>"51af1a011e66cfe48b000007", "_slug"=>"hidden", "site_id"=>"51af1a001e66cfe48b000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 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::ContentEntry51af1a011e66cfe48b000007", "_original_id"=>"51af1a011e66cfe48b00000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b00000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1a001e66cfe48b000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000007", "_original_id"=>"51af1a011e66cfe48b00000c", "_keywords"=>["hidden"]}] flags=[] (0.0982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1a001e66cfe48b000002", "parent_id"=>"51af1a011e66cfe48b000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3428ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1a011e66cfe48b000004", "site_id"=>"51af1a001e66cfe48b000002", "_id"=>{"$ne"=>"51af1a011e66cfe48b00000e"}}} (0.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1a011e66cfe48b000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7019ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b00000e", "parent_ids"=>["51af1a011e66cfe48b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1a001e66cfe48b000002", "parent_id"=>"51af1a011e66cfe48b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a001e66cfe48b000002", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b00000e"]}}, "$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"=>"51af1a011e66cfe48b00000e"}, "$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"=>["51af1a011e66cfe48b00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b00000e"}, "$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"=>"51af1a011e66cfe48b00000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1a001e66cfe48b000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b00000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1a001e66cfe48b000002", "parent_id"=>"51af1a011e66cfe48b000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4427ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1a011e66cfe48b000004", "site_id"=>"51af1a001e66cfe48b000002", "_id"=>{"$ne"=>"51af1a011e66cfe48b000010"}}} (0.7381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1a011e66cfe48b000004", "site_id"=>"51af1a001e66cfe48b000002", "_id"=>{"$ne"=>"51af1a011e66cfe48b000010"}}, "$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"=>"51af1a011e66cfe48b000004", "site_id"=>"51af1a001e66cfe48b000002", "_id"=>{"$ne"=>"51af1a011e66cfe48b000010"}}, "$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={"_id"=>{"$in"=>["51af1a011e66cfe48b000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5472ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b000010", "parent_ids"=>["51af1a011e66cfe48b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1a001e66cfe48b000002", "parent_id"=>"51af1a011e66cfe48b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a001e66cfe48b000002", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000010"]}}, "$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"=>"51af1a011e66cfe48b000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2670ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1a011e66cfe48b000010"]}} 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"=>"51af1a011e66cfe48b000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1a001e66cfe48b000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000010", "_keywords"=>["en:search"]}] flags=[] (0.1137ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a001e66cfe48b000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1a001e66cfe48b000002"}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1a011e66cfe48b000012", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"54e27fd5361ba753d41e590e6a76367c2b385055", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"zNxKuvyLGWyBtAKgUUku", "api_key"=>"9c521279b551bf5a0b1849d584ec699c1067355d", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.0920ms) MOPED: 127.0.0.1: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"=>"51af1a011e66cfe48b000013", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 10:59:12 UTC, "updated_at"=>2013-06-05 10:59:13 UTC, "memberships"=>[{"_id"=>"51af1a011e66cfe48b000014", "role"=>"admin", "account_id"=>"51af1a011e66cfe48b000012"}]}] flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1a011e66cfe48b000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4432ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b000013", "_id"=>{"$ne"=>"51af1a011e66cfe48b000015"}}} (0.5507ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b000015", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1a011e66cfe48b000013", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b000013", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000015"]}}, "$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"=>"51af1a011e66cfe48b000015"}, "$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"=>["51af1a011e66cfe48b000015"]}} 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"=>"51af1a011e66cfe48b000015"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2367ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b000016", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1a011e66cfe48b000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000015", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.0980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1a011e66cfe48b000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6931ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b000013", "_id"=>{"$ne"=>"51af1a011e66cfe48b000017"}}} (0.4952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b000013", "_id"=>{"$ne"=>"51af1a011e66cfe48b000017"}}, "$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"=>nil, "site_id"=>"51af1a011e66cfe48b000013", "_id"=>{"$ne"=>"51af1a011e66cfe48b000017"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5744ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1a011e66cfe48b000013", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b000013", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000017"]}}, "$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"=>"51af1a011e66cfe48b000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2923ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1a011e66cfe48b000017"]}} 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"=>"51af1a011e66cfe48b000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b000013", "_id"=>{"$ne"=>"51af1a011e66cfe48b000018"}}} (0.5302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b000013", "_id"=>{"$ne"=>"51af1a011e66cfe48b000018"}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b000013", "_id"=>{"$ne"=>"51af1a011e66cfe48b000018"}}, "$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={"_id"=>{"$in"=>[]}} 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"=>"51af1a011e66cfe48b000018", "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"=>"51af1a011e66cfe48b000013", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b000013", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000018"]}}, "$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"=>"51af1a011e66cfe48b000018"}, "$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"=>["51af1a011e66cfe48b000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b000019", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af1a011e66cfe48b000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000018", "_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.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af1a011e66cfe48b000013", "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"=>"51af1a011e66cfe48b00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1a011e66cfe48b000013", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1a011e66cfe48b00001b", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC, "entries_custom_fields"=>[{"_id"=>"51af1a011e66cfe48b00001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1a011e66cfe48b00001c"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1a011e66cfe48b00001a", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5732ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b00001a"]}}} (0.6568ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1a011e66cfe48b00001c", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1a011e66cfe48b00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b00001a", "content_type_id"=>"51af1a011e66cfe48b00001a", "_slug"=>"not-findable-entry", "site_id"=>"51af1a011e66cfe48b000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b00001a", "_original_id"=>"51af1a011e66cfe48b00001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b00001d", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af1a011e66cfe48b000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b00001a", "_original_id"=>"51af1a011e66cfe48b00001c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1a011e66cfe48b00000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1a011e66cfe48b00000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000007"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000007"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1023ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1a011e66cfe48b000007"} update={"$set"=>{"updated_at"=>2013-06-05 10:59:13 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0801ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1a011e66cfe48b000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1271ms) Started GET "/" for 127.0.0.1 at 2013-06-05 12:59:13 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7010ms) [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_accounts", :query=>{}} (0.3619ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{}} (0.3211ms) Rendered /usr/local/lib/ruby/gems/1.9.1/gems/locomotive_cms-2.1.0/app/views/locomotive/errors/no_site.html.haml (17.4ms) Filter chain halted as :require_site rendered or redirected Completed 404 Not Found in 107ms (Views: 103.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.7401ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4868ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (1.4482ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8776ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.7958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_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"=>"51af1a011e66cfe48b00001e", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"fe1d91ac002c3646d019676ad930855e55cd2d54", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"yC2RwRpDs77p5Rn5zPsV", "api_key"=>"712d8eebfef80baefc172d90637b2334b6417f41", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1a011e66cfe48b00001f", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 10:59:12 UTC, "updated_at"=>2013-06-05 10:59:13 UTC, "memberships"=>[{"_id"=>"51af1a011e66cfe48b000020", "role"=>"admin", "account_id"=>"51af1a011e66cfe48b00001e"}]}] flags=[] (0.1349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1a011e66cfe48b00001f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7973ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00001f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000021"}}} (0.3469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1a011e66cfe48b00001f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000021"]}}, "$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"=>"51af1a011e66cfe48b000021"}, "$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"=>["51af1a011e66cfe48b000021"]}} 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"=>"51af1a011e66cfe48b000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b000022", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1a011e66cfe48b00001f"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000021", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1a011e66cfe48b00001f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00001f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000023"}}} (0.4468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00001f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000023"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00001f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000023"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4761ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1a011e66cfe48b00001f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000023"]}}, "$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"=>"51af1a011e66cfe48b000023"}, "$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"=>["51af1a011e66cfe48b000023"]}} 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"=>"51af1a011e66cfe48b00001f", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af1a011e66cfe48b000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1a011e66cfe48b00001f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1a011e66cfe48b000025", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC, "entries_custom_fields"=>[{"_id"=>"51af1a011e66cfe48b000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1a011e66cfe48b000024"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1a011e66cfe48b000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}}} flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1a011e66cfe48b000027"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1a011e66cfe48b000024", "_slug"=>"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::ContentEntry51af1a011e66cfe48b000024"]}}} (0.3810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1a011e66cfe48b000027", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1a011e66cfe48b000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000024", "content_type_id"=>"51af1a011e66cfe48b000024", "_slug"=>"findable-entry", "site_id"=>"51af1a011e66cfe48b00001f", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 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::ContentEntry51af1a011e66cfe48b000024", "_original_id"=>"51af1a011e66cfe48b000027"}, "$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"=>"51af1a011e66cfe48b000028", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1a011e66cfe48b00001f", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000024", "_original_id"=>"51af1a011e66cfe48b000027", "_keywords"=>["findable", "entry"]}] flags=[] (0.1140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1a011e66cfe48b000029"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1a011e66cfe48b000024", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2990ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000024"]}}} (0.4101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000024"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1a011e66cfe48b000029", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1a011e66cfe48b000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000024", "content_type_id"=>"51af1a011e66cfe48b000024", "_slug"=>"hidden", "site_id"=>"51af1a011e66cfe48b00001f", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000024", "_original_id"=>"51af1a011e66cfe48b000029"}, "$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"=>"51af1a011e66cfe48b00002a", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1a011e66cfe48b00001f", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000024", "_original_id"=>"51af1a011e66cfe48b000029", "_keywords"=>["hidden"]}] flags=[] (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.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1a011e66cfe48b00001f", "parent_id"=>"51af1a011e66cfe48b000021", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af1a011e66cfe48b000021", "site_id"=>"51af1a011e66cfe48b00001f", "_id"=>{"$ne"=>"51af1a011e66cfe48b00002b"}}} (0.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1a011e66cfe48b000021"]}} flags=[:slave_ok] limit=0 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"=>"51af1a011e66cfe48b00002b", "parent_ids"=>["51af1a011e66cfe48b000021"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1a011e66cfe48b00001f", "parent_id"=>"51af1a011e66cfe48b000021", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b00002b"]}}, "$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"=>"51af1a011e66cfe48b00002b"}, "$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"=>["51af1a011e66cfe48b00002b"]}} 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"=>"51af1a011e66cfe48b00002b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2542ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b00002c", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1a011e66cfe48b00001f"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b00002b", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.7262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1a011e66cfe48b00001f", "parent_id"=>"51af1a011e66cfe48b000021", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af1a011e66cfe48b000021", "site_id"=>"51af1a011e66cfe48b00001f", "_id"=>{"$ne"=>"51af1a011e66cfe48b00002d"}}} (0.3722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1a011e66cfe48b000021", "site_id"=>"51af1a011e66cfe48b00001f", "_id"=>{"$ne"=>"51af1a011e66cfe48b00002d"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1a011e66cfe48b000021", "site_id"=>"51af1a011e66cfe48b00001f", "_id"=>{"$ne"=>"51af1a011e66cfe48b00002d"}}, "$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={"_id"=>{"$in"=>["51af1a011e66cfe48b000021"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b00002d", "parent_ids"=>["51af1a011e66cfe48b000021"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1a011e66cfe48b00001f", "parent_id"=>"51af1a011e66cfe48b000021", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b00002d"]}}, "$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"=>"51af1a011e66cfe48b00002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3598ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1a011e66cfe48b00002d"]}} 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"=>"51af1a011e66cfe48b00002d"}, "$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"=>"51af1a011e66cfe48b00002e", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1a011e66cfe48b00001f"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b00002d", "_keywords"=>["en:search"]}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1a011e66cfe48b00001f"}, "$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"=>"51af1a011e66cfe48b000021"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 10:59:13 UTC}} flags=[] (0.1199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1a011e66cfe48b000022"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1a011e66cfe48b00001f"}}} flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1a011e66cfe48b00002f", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 10:59:12 UTC, "updated_at"=>2013-06-05 10:59:13 UTC, "memberships"=>[{"_id"=>"51af1a011e66cfe48b000030", "role"=>"admin", "account_id"=>"51af1a011e66cfe48b00001e"}]}] flags=[] (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1a011e66cfe48b00002f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5641ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00002f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000031"}}} (0.6239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b000031", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1a011e66cfe48b00002f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00002f", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000031"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"51af1a011e66cfe48b000031"}, "$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"=>["51af1a011e66cfe48b000031"]}} 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"=>"51af1a011e66cfe48b000031"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2258ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b000032", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1a011e66cfe48b00002f"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000031", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1a011e66cfe48b00002f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00002f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000033"}}} (0.4013ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00002f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000033"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00002f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000033"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4048ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1a011e66cfe48b00002f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00002f", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1a011e66cfe48b000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4172ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1a011e66cfe48b000033"]}} 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"=>"51af1a011e66cfe48b00002f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4809ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00002f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000034"}}} (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00002f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000034"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1a011e66cfe48b00002f", "_id"=>{"$ne"=>"51af1a011e66cfe48b000034"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1a011e66cfe48b000034", "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"=>"51af1a011e66cfe48b00002f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00002f", "template_dependencies.en"=>{"$in"=>["51af1a011e66cfe48b000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1a011e66cfe48b000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2301ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1a011e66cfe48b000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000034"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b000035", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af1a011e66cfe48b00002f"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1a011e66cfe48b000034", "_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.1574ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af1a011e66cfe48b00002f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5753ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1a011e66cfe48b000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1a011e66cfe48b00002f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1a011e66cfe48b000037", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 UTC, "entries_custom_fields"=>[{"_id"=>"51af1a011e66cfe48b000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1557ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1a011e66cfe48b000038"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1a011e66cfe48b000036", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2611ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1a011e66cfe48b000036"]}}} (0.4847ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1a011e66cfe48b000038", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1a011e66cfe48b000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000036", "content_type_id"=>"51af1a011e66cfe48b000036", "_slug"=>"not-findable-entry", "site_id"=>"51af1a011e66cfe48b00002f", "_label_field_name"=>"name", "updated_at"=>2013-06-05 10:59:13 UTC, "created_at"=>2013-06-05 10:59:13 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::ContentEntry51af1a011e66cfe48b000036", "_original_id"=>"51af1a011e66cfe48b000038"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1a011e66cfe48b000039", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af1a011e66cfe48b00002f", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1a011e66cfe48b000036", "_original_id"=>"51af1a011e66cfe48b000038", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1128ms) Started GET "/" for 127.0.0.1 at 2013-06-05 12:59:13 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "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 65ms (Views: 60.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 12:59:14 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$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=active_search_mongoid_models selector={"_stored.site_id"=>"51af1a011e66cfe48b00001f", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 12:59:14 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "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.5598ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 12:59:14 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4592ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 12:59:14 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1a011e66cfe48b00001f", "depth"=>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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af1a011e66cfe48b00001f", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3998ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7689ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5190ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4759ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4418ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0808ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0149ms) MOPED: 127.0.0.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.7150ms) MOPED: 127.0.0.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.5200ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1e891e66cf9c13000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"269ba0786b95d6985e9a8d51fea539b575ec82bc", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"jbTViqLtqBA4qs5BuUtH", "api_key"=>"c32bff144a50f03e0f7a1e79feda0fc4b8300ac6", "updated_at"=>2013-06-05 11:18:33 UTC, "created_at"=>2013-06-05 11:18:33 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.7842ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1e891e66cf9c13000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:18:33 UTC, "updated_at"=>2013-06-05 11:18:33 UTC, "memberships"=>[{"_id"=>"51af1e891e66cf9c13000003", "role"=>"admin", "account_id"=>"51af1e891e66cf9c13000001"}]}] flags=[] (0.1552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e891e66cf9c13000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9291ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e891e66cf9c13000002", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000004"}}} (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8a1e66cf9c13000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1e891e66cf9c13000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e8a1e66cf9c13000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000004"]}}, "$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"=>["51af1e8a1e66cf9c13000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c13000004"}, "$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"=>"51af1e8a1e66cf9c13000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1e891e66cf9c13000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c13000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e891e66cf9c13000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6330ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e891e66cf9c13000002", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000006"}}} (0.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e891e66cf9c13000002", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"51af1e891e66cf9c13000002", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4187ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8a1e66cf9c13000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1e891e66cf9c13000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1993ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000006"]}}, "$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"=>"51af1e8a1e66cf9c13000006"}, "$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"=>["51af1e8a1e66cf9c13000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af1e891e66cf9c13000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.0730ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1e8a1e66cf9c13000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1e891e66cf9c13000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1e8a1e66cf9c13000008", "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC, "entries_custom_fields"=>[{"_id"=>"51af1e8a1e66cf9c13000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af1e8a1e66cf9c13000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1e8a1e66cf9c13000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}}} flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8a1e66cf9c1300000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1e8a1e66cf9c13000007", "_slug"=>"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::ContentEntry51af1e8a1e66cf9c13000007"]}}} (0.4520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e8a1e66cf9c1300000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e8a1e66cf9c13000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000007", "content_type_id"=>"51af1e8a1e66cf9c13000007", "_slug"=>"findable-entry", "site_id"=>"51af1e891e66cf9c13000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 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::ContentEntry51af1e8a1e66cf9c13000007", "_original_id"=>"51af1e8a1e66cf9c1300000a"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af1e8a1e66cf9c1300000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1e891e66cf9c13000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000007", "_original_id"=>"51af1e8a1e66cf9c1300000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8a1e66cf9c1300000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000007"]}} 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"=>"51af1e8a1e66cf9c13000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3910ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000007"]}}} (0.3479ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4067ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e8a1e66cf9c1300000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e8a1e66cf9c13000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000007", "content_type_id"=>"51af1e8a1e66cf9c13000007", "_slug"=>"hidden", "site_id"=>"51af1e891e66cf9c13000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000007", "_original_id"=>"51af1e8a1e66cf9c1300000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5083ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8a1e66cf9c1300000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1e891e66cf9c13000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000007", "_original_id"=>"51af1e8a1e66cf9c1300000c", "_keywords"=>["hidden"]}] flags=[] (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.5989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e891e66cf9c13000002", "parent_id"=>"51af1e8a1e66cf9c13000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4618ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1e8a1e66cf9c13000004", "site_id"=>"51af1e891e66cf9c13000002", "_id"=>{"$ne"=>"51af1e8a1e66cf9c1300000e"}}} (0.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1e8a1e66cf9c13000004"]}} 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"=>"51af1e8a1e66cf9c1300000e", "parent_ids"=>["51af1e8a1e66cf9c13000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1e891e66cf9c13000002", "parent_id"=>"51af1e8a1e66cf9c13000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c1300000e"]}}, "$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"=>"51af1e8a1e66cf9c1300000e"}, "$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"=>["51af1e8a1e66cf9c1300000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c1300000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3357ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8a1e66cf9c1300000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1e891e66cf9c13000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c1300000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e891e66cf9c13000002", "parent_id"=>"51af1e8a1e66cf9c13000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af1e8a1e66cf9c13000004", "site_id"=>"51af1e891e66cf9c13000002", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000010"}}} (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e8a1e66cf9c13000004", "site_id"=>"51af1e891e66cf9c13000002", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000010"}}, "$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"=>"51af1e8a1e66cf9c13000004", "site_id"=>"51af1e891e66cf9c13000002", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1e8a1e66cf9c13000004"]}} flags=[:slave_ok] 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"=>"51af1e8a1e66cf9c13000010", "parent_ids"=>["51af1e8a1e66cf9c13000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1e891e66cf9c13000002", "parent_id"=>"51af1e8a1e66cf9c13000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1817ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000010"]}}, "$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"=>"51af1e8a1e66cf9c13000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2210ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e8a1e66cf9c13000010"]}} 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"=>"51af1e8a1e66cf9c13000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2131ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8a1e66cf9c13000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1e891e66cf9c13000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c13000010", "_keywords"=>["en:search"]}] flags=[] (0.1092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1e891e66cf9c13000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6659ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af1e8a1e66cf9c13000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:18:34 UTC}} flags=[] (0.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c13000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1e8a1e66cf9c13000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1e891e66cf9c13000002"}}} flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1e8a1e66cf9c13000012", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:18:33 UTC, "updated_at"=>2013-06-05 11:18:34 UTC, "memberships"=>[{"_id"=>"51af1e8a1e66cf9c13000013", "role"=>"admin", "account_id"=>"51af1e891e66cf9c13000001"}]}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8a1e66cf9c13000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3316ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c13000012", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000014"}}} (0.3989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8a1e66cf9c13000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1e8a1e66cf9c13000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c13000012", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000014"]}}, "$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"=>"51af1e8a1e66cf9c13000014"}, "$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"=>["51af1e8a1e66cf9c13000014"]}} 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"=>"51af1e8a1e66cf9c13000014"}, "$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"=>"51af1e8a1e66cf9c13000015", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1e8a1e66cf9c13000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c13000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8a1e66cf9c13000012", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c13000012", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000016"}}} (0.5183ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c13000012", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000016"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c13000012", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000016"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8a1e66cf9c13000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1e8a1e66cf9c13000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c13000012", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4253ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e8a1e66cf9c13000016"}, "$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"=>["51af1e8a1e66cf9c13000016"]}} 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"=>"51af1e8a1e66cf9c13000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4179ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c13000012", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000017"}}} (0.7110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c13000012", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000017"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"51af1e8a1e66cf9c13000012", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000017"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4287ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8a1e66cf9c13000017", "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"=>"51af1e8a1e66cf9c13000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c13000012", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e8a1e66cf9c13000017"}, "$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"=>["51af1e8a1e66cf9c13000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c13000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8a1e66cf9c13000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af1e8a1e66cf9c13000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c13000017", "_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.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af1e8a1e66cf9c13000012", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af1e8a1e66cf9c13000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1e8a1e66cf9c13000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1e8a1e66cf9c1300001a", "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC, "entries_custom_fields"=>[{"_id"=>"51af1e8a1e66cf9c1300001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8a1e66cf9c1300001b"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000019"]}} 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"=>"51af1e8a1e66cf9c13000019", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000019"]}}} (0.4048ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e8a1e66cf9c1300001b", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e8a1e66cf9c13000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000019", "content_type_id"=>"51af1e8a1e66cf9c13000019", "_slug"=>"not-findable-entry", "site_id"=>"51af1e8a1e66cf9c13000012", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 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::ContentEntry51af1e8a1e66cf9c13000019", "_original_id"=>"51af1e8a1e66cf9c1300001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8a1e66cf9c1300001c", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af1e8a1e66cf9c13000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000019", "_original_id"=>"51af1e8a1e66cf9c1300001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1111ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:18:34 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4930ms) Rendered text template (0.0ms) Completed 200 OK in 75ms (Views: 70.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:18:34 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af1e891e66cf9c13000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5562ms) Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:18:34 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "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.6120ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:18:34 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3862ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:18:34 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5083ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e891e66cf9c13000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_models selector={"_stored.site_id"=>"51af1e891e66cf9c13000002", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4387ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5262ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0550ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.0509ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8919ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.7119ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6218ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3588ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1e8a1e66cf9c1300001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"1d515c79e45afd9493251c9722b6f09577c1c55e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"urnK7C6tcs7d9zsQHXCx", "api_key"=>"db866f7d93725e5e3b28bdfbba9159c8e355e456", "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1e8a1e66cf9c1300001e", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:18:33 UTC, "updated_at"=>2013-06-05 11:18:34 UTC, "memberships"=>[{"_id"=>"51af1e8a1e66cf9c1300001f", "role"=>"admin", "account_id"=>"51af1e8a1e66cf9c1300001d"}]}] flags=[] (0.1440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8a1e66cf9c1300001e", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c1300001e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000020"}}} (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8a1e66cf9c13000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1e8a1e66cf9c1300001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300001e", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e8a1e66cf9c13000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2666ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e8a1e66cf9c13000020"]}} 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"=>"51af1e8a1e66cf9c13000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8a1e66cf9c13000021", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1e8a1e66cf9c1300001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c13000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8a1e66cf9c1300001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4587ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c1300001e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000022"}}} (0.3383ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c1300001e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000022"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c1300001e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000022"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8a1e66cf9c13000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1e8a1e66cf9c1300001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300001e", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000022"]}}, "$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"=>"51af1e8a1e66cf9c13000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2899ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e8a1e66cf9c13000022"]}} 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"=>"51af1e8a1e66cf9c1300001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1e8a1e66cf9c13000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1e8a1e66cf9c1300001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1e8a1e66cf9c13000024", "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC, "entries_custom_fields"=>[{"_id"=>"51af1e8a1e66cf9c13000024", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1e8a1e66cf9c13000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1e8a1e66cf9c13000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}}} flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8a1e66cf9c13000026"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000023"]}} 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_content_entries selector={"content_type_id"=>"51af1e8a1e66cf9c13000023", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3719ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000023"]}}} (0.3159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e8a1e66cf9c13000026", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e8a1e66cf9c13000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000023", "content_type_id"=>"51af1e8a1e66cf9c13000023", "_slug"=>"findable-entry", "site_id"=>"51af1e8a1e66cf9c1300001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000023", "_original_id"=>"51af1e8a1e66cf9c13000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8a1e66cf9c13000027", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1e8a1e66cf9c1300001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000023", "_original_id"=>"51af1e8a1e66cf9c13000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8a1e66cf9c13000028"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000023"]}} 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"=>"51af1e8a1e66cf9c13000023", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000023"]}}} (0.3541ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5078ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e8a1e66cf9c13000028", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e8a1e66cf9c13000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000023", "content_type_id"=>"51af1e8a1e66cf9c13000023", "_slug"=>"hidden", "site_id"=>"51af1e8a1e66cf9c1300001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000023", "_original_id"=>"51af1e8a1e66cf9c13000028"}, "$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"=>"51af1e8a1e66cf9c13000029", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1e8a1e66cf9c1300001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000023", "_original_id"=>"51af1e8a1e66cf9c13000028", "_keywords"=>["hidden"]}] flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8a1e66cf9c1300001e", "parent_id"=>"51af1e8a1e66cf9c13000020", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af1e8a1e66cf9c13000020", "site_id"=>"51af1e8a1e66cf9c1300001e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c1300002a"}}} (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1e8a1e66cf9c13000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3557ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8a1e66cf9c1300002a", "parent_ids"=>["51af1e8a1e66cf9c13000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1e8a1e66cf9c1300001e", "parent_id"=>"51af1e8a1e66cf9c13000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.2148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300001e", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c1300002a"]}}, "$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"=>"51af1e8a1e66cf9c1300002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5281ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e8a1e66cf9c1300002a"]}} 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"=>"51af1e8a1e66cf9c1300002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8a1e66cf9c1300002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1e8a1e66cf9c1300001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c1300002a", "_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.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8a1e66cf9c1300001e", "parent_id"=>"51af1e8a1e66cf9c13000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4144ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1e8a1e66cf9c13000020", "site_id"=>"51af1e8a1e66cf9c1300001e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c1300002c"}}} (0.4117ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e8a1e66cf9c13000020", "site_id"=>"51af1e8a1e66cf9c1300001e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c1300002c"}}, "$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"=>"51af1e8a1e66cf9c13000020", "site_id"=>"51af1e8a1e66cf9c1300001e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c1300002c"}}, "$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={"_id"=>{"$in"=>["51af1e8a1e66cf9c13000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8a1e66cf9c1300002c", "parent_ids"=>["51af1e8a1e66cf9c13000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1e8a1e66cf9c1300001e", "parent_id"=>"51af1e8a1e66cf9c13000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300001e", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c1300002c"]}}, "$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"=>"51af1e8a1e66cf9c1300002c"}, "$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"=>["51af1e8a1e66cf9c1300002c"]}} 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"=>"51af1e8a1e66cf9c1300002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8a1e66cf9c1300002d", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1e8a1e66cf9c1300001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c1300002c", "_keywords"=>["en:search"]}] flags=[] (0.1054ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1e8a1e66cf9c1300001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6261ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af1e8a1e66cf9c13000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:18:34 UTC}} flags=[] (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300001e", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000020"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c13000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1e8a1e66cf9c13000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1e8a1e66cf9c1300001e"}}} flags=[] (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1e8a1e66cf9c1300002e", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:18:33 UTC, "updated_at"=>2013-06-05 11:18:34 UTC, "memberships"=>[{"_id"=>"51af1e8a1e66cf9c1300002f", "role"=>"admin", "account_id"=>"51af1e8a1e66cf9c1300001d"}]}] flags=[] (0.1442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8a1e66cf9c1300002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c1300002e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000030"}}} (0.6459ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8a1e66cf9c13000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1e8a1e66cf9c1300002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300002e", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000030"]}}, "$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"=>"51af1e8a1e66cf9c13000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6149ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e8a1e66cf9c13000030"]}} 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"=>"51af1e8a1e66cf9c13000030"}, "$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"=>"51af1e8a1e66cf9c13000031", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1e8a1e66cf9c1300002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8a1e66cf9c13000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8a1e66cf9c1300002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3390ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c1300002e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000032"}}} (0.6759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c1300002e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000032"}}, "$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"=>nil, "site_id"=>"51af1e8a1e66cf9c1300002e", "_id"=>{"$ne"=>"51af1e8a1e66cf9c13000032"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"51af1e8a1e66cf9c13000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1e8a1e66cf9c1300002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:34 UTC, "created_at"=>2013-06-05 11:18:34 UTC}] flags=[] (57.7543ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300002e", "template_dependencies.en"=>{"$in"=>["51af1e8a1e66cf9c13000032"]}}, "$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"=>"51af1e8a1e66cf9c13000032"}, "$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"=>["51af1e8a1e66cf9c13000032"]}} 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"=>"51af1e8a1e66cf9c1300002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5460ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c1300002e", "_id"=>{"$ne"=>"51af1e8b1e66cf9c13000033"}}} (0.7539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8a1e66cf9c1300002e", "_id"=>{"$ne"=>"51af1e8b1e66cf9c13000033"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"51af1e8a1e66cf9c1300002e", "_id"=>{"$ne"=>"51af1e8b1e66cf9c13000033"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2410ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8b1e66cf9c13000033", "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"=>"51af1e8a1e66cf9c1300002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:35 UTC, "created_at"=>2013-06-05 11:18:35 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300002e", "template_dependencies.en"=>{"$in"=>["51af1e8b1e66cf9c13000033"]}}, "$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"=>"51af1e8b1e66cf9c13000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e8b1e66cf9c13000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8b1e66cf9c13000033"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3290ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8b1e66cf9c13000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af1e8a1e66cf9c1300002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1e8b1e66cf9c13000033", "_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"=>"51af1e8a1e66cf9c1300002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1e8b1e66cf9c13000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1e8a1e66cf9c1300002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1e8b1e66cf9c13000036", "updated_at"=>2013-06-05 11:18:35 UTC, "created_at"=>2013-06-05 11:18:35 UTC, "entries_custom_fields"=>[{"_id"=>"51af1e8b1e66cf9c13000036", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8b1e66cf9c13000037"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8b1e66cf9c13000035"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1e8b1e66cf9c13000035", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4339ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8b1e66cf9c13000035"]}}} (0.3519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e8b1e66cf9c13000037", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e8b1e66cf9c13000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e8b1e66cf9c13000035", "content_type_id"=>"51af1e8b1e66cf9c13000035", "_slug"=>"not-findable-entry", "site_id"=>"51af1e8a1e66cf9c1300002e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:35 UTC, "created_at"=>2013-06-05 11:18:35 UTC}] flags=[] (0.1543ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1e8b1e66cf9c13000035", "_original_id"=>"51af1e8b1e66cf9c13000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1e8b1e66cf9c13000038", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af1e8a1e66cf9c1300002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1e8b1e66cf9c13000035", "_original_id"=>"51af1e8b1e66cf9c13000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8a1e66cf9c13000026"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8a1e66cf9c13000028"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000023"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000023"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1009ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1e8a1e66cf9c13000023"} update={"$set"=>{"updated_at"=>2013-06-05 11:18:35 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0777ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1e8a1e66cf9c13000023"} 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.1159ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:18:35 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5031ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:18:35 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af1e8a1e66cf9c1300001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2739ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1e8a1e66cf9c13000023"} 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"=>"51af1e8a1e66cf9c13000023", "updated_at"=>{"$lt"=>2013-06-05 11:18:35 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8a1e66cf9c13000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1e8a1e66cf9c1300001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af1e8a1e66cf9c13000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5229ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af1e8a1e66cf9c13000026"} update={"$set"=>{"updated_at"=>2013-06-05 11:18:35 UTC}} flags=[] (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000023", "_original_id"=>"51af1e8a1e66cf9c13000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6258ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1e8a1e66cf9c13000027"} update={"$set"=>{"_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1e8a1e66cf9c1300001e", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1e8a1e66cf9c1300001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3753ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af1e8a1e66cf9c13000023"}, "$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_content_entries selector={"_id"=>"51af1e8a1e66cf9c13000028"} update={"$set"=>{"updated_at"=>2013-06-05 11:18:35 UTC}} flags=[] (0.1020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1e8a1e66cf9c13000023", "_original_id"=>"51af1e8a1e66cf9c13000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1e8a1e66cf9c13000029"} update={"$set"=>{"_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1e8a1e66cf9c1300001e", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1030ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:18:35 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:18:35 +0200 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.8142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5798ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:18:35 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8a1e66cf9c1300001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af1e8a1e66cf9c1300001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3901ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5069ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4749ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5341ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5744ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1e8b1e66cfd92d000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"df9fa8760a165fdd444f88a51fc06f8c514d86ec", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"s4tkJbUYQ5sks3ipp9Ke", "api_key"=>"3a851a55a76293341f82bf64addb8eae4da3642a", "updated_at"=>2013-06-05 11:18:35 UTC, "created_at"=>2013-06-05 11:18:35 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.2770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1e8b1e66cfd92d000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:18:33 UTC, "updated_at"=>2013-06-05 11:18:35 UTC, "memberships"=>[{"_id"=>"51af1e8b1e66cfd92d000003", "role"=>"admin", "account_id"=>"51af1e8b1e66cfd92d000001"}]}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8b1e66cfd92d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8409ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8b1e66cfd92d000002", "_id"=>{"$ne"=>"51af1e8c1e66cfd92d000004"}}} (0.4139ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8c1e66cfd92d000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1e8b1e66cfd92d000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:36 UTC, "created_at"=>2013-06-05 11:18:36 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e8c1e66cfd92d000004"}, "$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"=>{"site_id"=>"51af1e8b1e66cfd92d000002", "template_dependencies.en"=>{"$in"=>["51af1e8c1e66cfd92d000004"]}}, "$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"=>["51af1e8c1e66cfd92d000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8b1e66cfd92d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7172ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8b1e66cfd92d000002", "_id"=>{"$ne"=>"51af1e8c1e66cfd92d000005"}}} (0.4151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8b1e66cfd92d000002", "_id"=>{"$ne"=>"51af1e8c1e66cfd92d000005"}}, "$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"=>nil, "site_id"=>"51af1e8b1e66cfd92d000002", "_id"=>{"$ne"=>"51af1e8c1e66cfd92d000005"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"51af1e8c1e66cfd92d000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1e8b1e66cfd92d000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:36 UTC, "created_at"=>2013-06-05 11:18:36 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8b1e66cfd92d000002", "template_dependencies.en"=>{"$in"=>["51af1e8c1e66cfd92d000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e8c1e66cfd92d000005"}, "$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"=>["51af1e8c1e66cfd92d000005"]}} 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"=>"51af1e8b1e66cfd92d000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6931ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1e8c1e66cfd92d000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1e8b1e66cfd92d000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1e8c1e66cfd92d000007", "updated_at"=>2013-06-05 11:18:36 UTC, "created_at"=>2013-06-05 11:18:36 UTC, "entries_custom_fields"=>[{"_id"=>"51af1e8c1e66cfd92d000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af1e8c1e66cfd92d000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1e8c1e66cfd92d000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:18:36 UTC, "created_at"=>2013-06-05 11:18:36 UTC}}} flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8c1e66cfd92d000009"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8c1e66cfd92d000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1e8c1e66cfd92d000006", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8c1e66cfd92d000006"]}}} (0.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e8c1e66cfd92d000009", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e8c1e66cfd92d000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e8c1e66cfd92d000006", "content_type_id"=>"51af1e8c1e66cfd92d000006", "_slug"=>"findable-entry", "site_id"=>"51af1e8b1e66cfd92d000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:36 UTC, "created_at"=>2013-06-05 11:18:36 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8d1e66cfd92d00000a"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8c1e66cfd92d000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1e8c1e66cfd92d000006", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2429ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8c1e66cfd92d000006"]}}} (0.2701ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8c1e66cfd92d000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e8d1e66cfd92d00000a", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e8c1e66cfd92d000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e8c1e66cfd92d000006", "content_type_id"=>"51af1e8c1e66cfd92d000006", "_slug"=>"hidden", "site_id"=>"51af1e8b1e66cfd92d000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:37 UTC, "created_at"=>2013-06-05 11:18:37 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.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8b1e66cfd92d000002", "parent_id"=>"51af1e8c1e66cfd92d000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af1e8c1e66cfd92d000004", "site_id"=>"51af1e8b1e66cfd92d000002", "_id"=>{"$ne"=>"51af1e8d1e66cfd92d00000b"}}} (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1e8c1e66cfd92d000004"]}} 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"=>"51af1e8d1e66cfd92d00000b", "parent_ids"=>["51af1e8c1e66cfd92d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1e8b1e66cfd92d000002", "parent_id"=>"51af1e8c1e66cfd92d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:37 UTC, "created_at"=>2013-06-05 11:18:37 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8b1e66cfd92d000002", "template_dependencies.en"=>{"$in"=>["51af1e8d1e66cfd92d00000b"]}}, "$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"=>"51af1e8d1e66cfd92d00000b"}, "$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"=>["51af1e8d1e66cfd92d00000b"]}} 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.7930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8b1e66cfd92d000002", "parent_id"=>"51af1e8c1e66cfd92d000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af1e8c1e66cfd92d000004", "site_id"=>"51af1e8b1e66cfd92d000002", "_id"=>{"$ne"=>"51af1e8d1e66cfd92d00000c"}}} (0.3481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e8c1e66cfd92d000004", "site_id"=>"51af1e8b1e66cfd92d000002", "_id"=>{"$ne"=>"51af1e8d1e66cfd92d00000c"}}, "$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"=>"51af1e8c1e66cfd92d000004", "site_id"=>"51af1e8b1e66cfd92d000002", "_id"=>{"$ne"=>"51af1e8d1e66cfd92d00000c"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1e8c1e66cfd92d000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4792ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8d1e66cfd92d00000c", "parent_ids"=>["51af1e8c1e66cfd92d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1e8b1e66cfd92d000002", "parent_id"=>"51af1e8c1e66cfd92d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:37 UTC, "created_at"=>2013-06-05 11:18:37 UTC}] flags=[] (0.1898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8b1e66cfd92d000002", "template_dependencies.en"=>{"$in"=>["51af1e8d1e66cfd92d00000c"]}}, "$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"=>"51af1e8d1e66cfd92d00000c"}, "$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"=>["51af1e8d1e66cfd92d00000c"]}} 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"=>"51af1e8b1e66cfd92d000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5603ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1e8b1e66cfd92d000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4210ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af1e8c1e66cfd92d000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:18:38 UTC}} flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8b1e66cfd92d000002", "template_dependencies.en"=>{"$in"=>["51af1e8c1e66cfd92d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.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.5953ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1e8e1e66cfd92d00000d", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:18:33 UTC, "updated_at"=>2013-06-05 11:18:38 UTC, "memberships"=>[{"_id"=>"51af1e8e1e66cfd92d00000e", "role"=>"admin", "account_id"=>"51af1e8b1e66cfd92d000001"}]}] flags=[] (0.1299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8e1e66cfd92d00000d", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8e1e66cfd92d00000d", "_id"=>{"$ne"=>"51af1e8e1e66cfd92d00000f"}}} (0.3831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8e1e66cfd92d00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1e8e1e66cfd92d00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:38 UTC, "created_at"=>2013-06-05 11:18:38 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8e1e66cfd92d00000d", "template_dependencies.en"=>{"$in"=>["51af1e8e1e66cfd92d00000f"]}}, "$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"=>"51af1e8e1e66cfd92d00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e8e1e66cfd92d00000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8e1e66cfd92d00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8e1e66cfd92d00000d", "_id"=>{"$ne"=>"51af1e8e1e66cfd92d000010"}}} (0.4508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8e1e66cfd92d00000d", "_id"=>{"$ne"=>"51af1e8e1e66cfd92d000010"}}, "$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"=>nil, "site_id"=>"51af1e8e1e66cfd92d00000d", "_id"=>{"$ne"=>"51af1e8e1e66cfd92d000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3932ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8e1e66cfd92d000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1e8e1e66cfd92d00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:38 UTC, "created_at"=>2013-06-05 11:18:38 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8e1e66cfd92d00000d", "template_dependencies.en"=>{"$in"=>["51af1e8e1e66cfd92d000010"]}}, "$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"=>"51af1e8e1e66cfd92d000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2692ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e8e1e66cfd92d000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e8e1e66cfd92d00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5660ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e8e1e66cfd92d00000d", "_id"=>{"$ne"=>"51af1e8e1e66cfd92d000011"}}} (0.7198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8e1e66cfd92d00000d", "_id"=>{"$ne"=>"51af1e8e1e66cfd92d000011"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e8e1e66cfd92d00000d", "_id"=>{"$ne"=>"51af1e8e1e66cfd92d000011"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.1659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e8e1e66cfd92d000011", "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"=>"51af1e8e1e66cfd92d00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:38 UTC, "created_at"=>2013-06-05 11:18:38 UTC}] flags=[] (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8e1e66cfd92d00000d", "template_dependencies.en"=>{"$in"=>["51af1e8e1e66cfd92d000011"]}}, "$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"=>"51af1e8e1e66cfd92d000011"}, "$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"=>["51af1e8e1e66cfd92d000011"]}} 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"=>"51af1e8e1e66cfd92d00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6351ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1e8f1e66cfd92d000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1e8e1e66cfd92d00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1e8f1e66cfd92d000013", "updated_at"=>2013-06-05 11:18:39 UTC, "created_at"=>2013-06-05 11:18:39 UTC, "entries_custom_fields"=>[{"_id"=>"51af1e8f1e66cfd92d000013", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8f1e66cfd92d000014"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8f1e66cfd92d000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1e8f1e66cfd92d000012", "_slug"=>"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::ContentEntry51af1e8f1e66cfd92d000012"]}}} (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e8f1e66cfd92d000014", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e8f1e66cfd92d000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e8f1e66cfd92d000012", "content_type_id"=>"51af1e8f1e66cfd92d000012", "_slug"=>"not-findable-entry", "site_id"=>"51af1e8e1e66cfd92d00000d", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:39 UTC, "created_at"=>2013-06-05 11:18:39 UTC}] flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8c1e66cfd92d000009"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8c1e66cfd92d000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5047ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e8d1e66cfd92d00000a"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8c1e66cfd92d000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6008ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8c1e66cfd92d000006"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1e8c1e66cfd92d000006"} update={"$set"=>{"updated_at"=>2013-06-05 11:18:39 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"=>"51af1e8c1e66cfd92d000006"} 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.1061ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:18:39 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8b1e66cfd92d000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4737ms) Rendered text template (0.0ms) Completed 200 OK in 78ms (Views: 73.0ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:18:39 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6573ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8b1e66cfd92d000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6068ms) Rendered text template (0.0ms) Completed 200 OK in 229ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1e8c1e66cfd92d000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1e8c1e66cfd92d000006", "updated_at"=>{"$lt"=>2013-06-05 11:18:39 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e8c1e66cfd92d000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1e8b1e66cfd92d000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af1e8c1e66cfd92d000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4487ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af1e8c1e66cfd92d000009"} update={"$set"=>{"updated_at"=>2013-06-05 11:18:40 UTC}} flags=[] (0.1011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1e8b1e66cfd92d000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af1e8c1e66cfd92d000006"}, "$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"=>"51af1e8d1e66cfd92d00000a"} update={"$set"=>{"updated_at"=>2013-06-05 11:18:40 UTC}} flags=[] (0.0992ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:18:41 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:18:41 +0200 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.6158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8b1e66cfd92d000002", "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 5ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:18:41 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e8b1e66cfd92d000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5798ms) Rendered text template (0.0ms) Completed 200 OK in 184ms (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.5310ms) 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.1361ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7663ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1e911e66cfd92d000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8150f7ff596da311bdefb65c3a8827ff511ce462", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"a1WaSd1Ku2QGfQfbKrRj", "api_key"=>"7b10a618f5b460ed8e67e2bb1ecab8f910474b5f", "updated_at"=>2013-06-05 11:18:41 UTC, "created_at"=>2013-06-05 11:18:41 UTC}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7229ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1e911e66cfd92d000016", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:18:33 UTC, "updated_at"=>2013-06-05 11:18:41 UTC, "memberships"=>[{"_id"=>"51af1e911e66cfd92d000017", "role"=>"admin", "account_id"=>"51af1e911e66cfd92d000015"}]}] flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e911e66cfd92d000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e911e66cfd92d000016", "_id"=>{"$ne"=>"51af1e911e66cfd92d000018"}}} (0.3281ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e911e66cfd92d000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1e911e66cfd92d000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:41 UTC, "created_at"=>2013-06-05 11:18:41 UTC}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "template_dependencies.en"=>{"$in"=>["51af1e911e66cfd92d000018"]}}, "$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"=>"51af1e911e66cfd92d000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e911e66cfd92d000018"]}} 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"=>"51af1e911e66cfd92d000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5822ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e911e66cfd92d000016", "_id"=>{"$ne"=>"51af1e911e66cfd92d000019"}}} (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e911e66cfd92d000016", "_id"=>{"$ne"=>"51af1e911e66cfd92d000019"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e911e66cfd92d000016", "_id"=>{"$ne"=>"51af1e911e66cfd92d000019"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af1e911e66cfd92d000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1e911e66cfd92d000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:41 UTC, "created_at"=>2013-06-05 11:18:41 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "template_dependencies.en"=>{"$in"=>["51af1e911e66cfd92d000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e911e66cfd92d000019"}, "$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"=>["51af1e911e66cfd92d000019"]}} 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"=>"51af1e911e66cfd92d000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7212ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1e911e66cfd92d00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1e911e66cfd92d000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1e911e66cfd92d00001b", "updated_at"=>2013-06-05 11:18:41 UTC, "created_at"=>2013-06-05 11:18:41 UTC, "entries_custom_fields"=>[{"_id"=>"51af1e911e66cfd92d00001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1e911e66cfd92d00001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1e911e66cfd92d00001c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:18:41 UTC, "created_at"=>2013-06-05 11:18:41 UTC}}} flags=[] (0.1471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e911e66cfd92d00001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e911e66cfd92d00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1e911e66cfd92d00001a", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e911e66cfd92d00001a"]}}} (0.5660ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e911e66cfd92d00001d", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e911e66cfd92d00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e911e66cfd92d00001a", "content_type_id"=>"51af1e911e66cfd92d00001a", "_slug"=>"findable-entry", "site_id"=>"51af1e911e66cfd92d000016", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:41 UTC, "created_at"=>2013-06-05 11:18:41 UTC}] flags=[] (0.1452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e921e66cfd92d00001e"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e911e66cfd92d00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1e911e66cfd92d00001a", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2429ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e911e66cfd92d00001a"]}}} (0.3231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1e911e66cfd92d00001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e921e66cfd92d00001e", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e911e66cfd92d00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e911e66cfd92d00001a", "content_type_id"=>"51af1e911e66cfd92d00001a", "_slug"=>"hidden", "site_id"=>"51af1e911e66cfd92d000016", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:42 UTC, "created_at"=>2013-06-05 11:18:42 UTC}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e911e66cfd92d000016", "parent_id"=>"51af1e911e66cfd92d000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4652ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1e911e66cfd92d000018", "site_id"=>"51af1e911e66cfd92d000016", "_id"=>{"$ne"=>"51af1e921e66cfd92d00001f"}}} (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1e911e66cfd92d000018"]}} 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"=>"51af1e921e66cfd92d00001f", "parent_ids"=>["51af1e911e66cfd92d000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1e911e66cfd92d000016", "parent_id"=>"51af1e911e66cfd92d000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:42 UTC, "created_at"=>2013-06-05 11:18:42 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "template_dependencies.en"=>{"$in"=>["51af1e921e66cfd92d00001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e921e66cfd92d00001f"}, "$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"=>["51af1e921e66cfd92d00001f"]}} 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.6690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e911e66cfd92d000016", "parent_id"=>"51af1e911e66cfd92d000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6280ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1e911e66cfd92d000018", "site_id"=>"51af1e911e66cfd92d000016", "_id"=>{"$ne"=>"51af1e931e66cfd92d000020"}}} (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e911e66cfd92d000018", "site_id"=>"51af1e911e66cfd92d000016", "_id"=>{"$ne"=>"51af1e931e66cfd92d000020"}}, "$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"=>"51af1e911e66cfd92d000018", "site_id"=>"51af1e911e66cfd92d000016", "_id"=>{"$ne"=>"51af1e931e66cfd92d000020"}}, "$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={"_id"=>{"$in"=>["51af1e911e66cfd92d000018"]}} flags=[:slave_ok] limit=0 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"=>"51af1e931e66cfd92d000020", "parent_ids"=>["51af1e911e66cfd92d000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1e911e66cfd92d000016", "parent_id"=>"51af1e911e66cfd92d000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:43 UTC, "created_at"=>2013-06-05 11:18:43 UTC}] flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "template_dependencies.en"=>{"$in"=>["51af1e931e66cfd92d000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2677ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1e931e66cfd92d000020"}, "$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"=>["51af1e931e66cfd92d000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6127ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1e911e66cfd92d000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4764ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af1e911e66cfd92d000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:18:43 UTC}} flags=[] (0.1121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "template_dependencies.en"=>{"$in"=>["51af1e911e66cfd92d000018"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1e931e66cfd92d000021", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:18:33 UTC, "updated_at"=>2013-06-05 11:18:43 UTC, "memberships"=>[{"_id"=>"51af1e931e66cfd92d000022", "role"=>"admin", "account_id"=>"51af1e911e66cfd92d000015"}]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1e931e66cfd92d000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e931e66cfd92d000021", "_id"=>{"$ne"=>"51af1e931e66cfd92d000023"}}} (0.5269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e931e66cfd92d000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1e931e66cfd92d000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:43 UTC, "created_at"=>2013-06-05 11:18:43 UTC}] flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e931e66cfd92d000021", "template_dependencies.en"=>{"$in"=>["51af1e931e66cfd92d000023"]}}, "$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"=>"51af1e931e66cfd92d000023"}, "$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"=>["51af1e931e66cfd92d000023"]}} 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"=>"51af1e931e66cfd92d000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e931e66cfd92d000021", "_id"=>{"$ne"=>"51af1e941e66cfd92d000024"}}} (0.4430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e931e66cfd92d000021", "_id"=>{"$ne"=>"51af1e941e66cfd92d000024"}}, "$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"=>nil, "site_id"=>"51af1e931e66cfd92d000021", "_id"=>{"$ne"=>"51af1e941e66cfd92d000024"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4518ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e941e66cfd92d000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1e931e66cfd92d000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:44 UTC, "created_at"=>2013-06-05 11:18:44 UTC}] flags=[] (0.1802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e931e66cfd92d000021", "template_dependencies.en"=>{"$in"=>["51af1e941e66cfd92d000024"]}}, "$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"=>"51af1e941e66cfd92d000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2329ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e941e66cfd92d000024"]}} 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"=>"51af1e931e66cfd92d000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4911ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1e931e66cfd92d000021", "_id"=>{"$ne"=>"51af1e941e66cfd92d000025"}}} (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e931e66cfd92d000021", "_id"=>{"$ne"=>"51af1e941e66cfd92d000025"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1e931e66cfd92d000021", "_id"=>{"$ne"=>"51af1e941e66cfd92d000025"}}, "$orderby"=>{"position"=>-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_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1e941e66cfd92d000025", "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"=>"51af1e931e66cfd92d000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:18:44 UTC, "created_at"=>2013-06-05 11:18:44 UTC}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e931e66cfd92d000021", "template_dependencies.en"=>{"$in"=>["51af1e941e66cfd92d000025"]}}, "$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"=>"51af1e941e66cfd92d000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2787ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1e941e66cfd92d000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af1e931e66cfd92d000021", "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"=>"51af1e941e66cfd92d000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1e931e66cfd92d000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1e941e66cfd92d000027", "updated_at"=>2013-06-05 11:18:44 UTC, "created_at"=>2013-06-05 11:18:44 UTC, "entries_custom_fields"=>[{"_id"=>"51af1e941e66cfd92d000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1e941e66cfd92d000028"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1e941e66cfd92d000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1e941e66cfd92d000026", "_slug"=>"not-findable-entry"} 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::ContentEntry51af1e941e66cfd92d000026"]}}} (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1e941e66cfd92d000028", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1e941e66cfd92d000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1e941e66cfd92d000026", "content_type_id"=>"51af1e941e66cfd92d000026", "_slug"=>"not-findable-entry", "site_id"=>"51af1e931e66cfd92d000021", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:18:44 UTC, "created_at"=>2013-06-05 11:18:44 UTC}] flags=[] (0.1650ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:18:45 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 4ms (Views: 0.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:18:45 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$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 195ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:18:45 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "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 4ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:18:45 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:18:45 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1e911e66cfd92d000016", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "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 189ms (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.5341ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2302ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3602ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8411ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0259ms) MOPED: 127.0.0.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.5281ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9542ms) MOPED: 127.0.0.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. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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=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_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5047ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1eb11e66cf3af1000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7b8bb87e3042bf280974a9878c7a648dc646ab1d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"nxyHLxuc8CLB81CE3WyY", "api_key"=>"ed035762d54b7244a4e248941182bf9af82505a8", "updated_at"=>2013-06-05 11:19:13 UTC, "created_at"=>2013-06-05 11:19:13 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.7918ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eb11e66cf3af1000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:19:13 UTC, "updated_at"=>2013-06-05 11:19:13 UTC, "memberships"=>[{"_id"=>"51af1eb11e66cf3af1000003", "role"=>"admin", "account_id"=>"51af1eb11e66cf3af1000001"}]}] flags=[] (0.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7341ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2569ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb11e66cf3af1000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9120ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb11e66cf3af1000002", "_id"=>{"$ne"=>"51af1eb11e66cf3af1000004"}}} (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb11e66cf3af1000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eb11e66cf3af1000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:13 UTC, "created_at"=>2013-06-05 11:19:13 UTC}] flags=[] (0.2682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb11e66cf3af1000004"}, "$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"=>{"site_id"=>"51af1eb11e66cf3af1000002", "template_dependencies.en"=>{"$in"=>["51af1eb11e66cf3af1000004"]}}, "$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"=>["51af1eb11e66cf3af1000004"]}} 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"=>"51af1eb11e66cf3af1000004"}, "$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"=>"51af1eb11e66cf3af1000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eb11e66cf3af1000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb11e66cf3af1000004", "_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"=>"51af1eb11e66cf3af1000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1eb11e66cfdb2e000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"9ec84b1aaebe055ff8602fb0dcc7668c3852850b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"vEKjd69k9sA9ytLQ44hS", "api_key"=>"1a59624cfc9d1e9a33487918d4417a58869a4fa9", "updated_at"=>2013-06-05 11:19:13 UTC, "created_at"=>2013-06-05 11:19:13 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eb11e66cfdb2e000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:19:13 UTC, "updated_at"=>2013-06-05 11:19:13 UTC, "memberships"=>[{"_id"=>"51af1eb11e66cfdb2e000003", "role"=>"admin", "account_id"=>"51af1eb11e66cfdb2e000001"}]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb11e66cf3af1000002", "_id"=>{"$ne"=>"51af1eb11e66cf3af1000006"}}} (0.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb11e66cf3af1000002", "_id"=>{"$ne"=>"51af1eb11e66cf3af1000006"}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb11e66cf3af1000002", "_id"=>{"$ne"=>"51af1eb11e66cf3af1000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb11e66cf3af1000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eb11e66cf3af1000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.2136ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb11e66cf3af1000002", "template_dependencies.en"=>{"$in"=>["51af1eb11e66cf3af1000006"]}}, "$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"=>"51af1eb11e66cf3af1000006"}, "$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"=>["51af1eb11e66cf3af1000006"]}} 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"=>"51af1eb11e66cf3af1000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1eb21e66cf3af1000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eb11e66cf3af1000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eb21e66cf3af1000008", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eb21e66cf3af1000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2651ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1eb21e66cf3af1000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1eb21e66cf3af1000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}}} flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb21e66cf3af100000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cf3af1000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eb21e66cf3af1000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4342ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cf3af1000007"]}}} (0.3769ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eb21e66cf3af100000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eb21e66cf3af1000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af1000007", "content_type_id"=>"51af1eb21e66cf3af1000007", "_slug"=>"findable-entry", "site_id"=>"51af1eb11e66cf3af1000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 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::ContentEntry51af1eb21e66cf3af1000007", "_original_id"=>"51af1eb21e66cf3af100000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eb21e66cf3af100000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1eb11e66cf3af1000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af1000007", "_original_id"=>"51af1eb21e66cf3af100000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb21e66cf3af100000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cf3af1000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eb21e66cf3af1000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2120ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cf3af1000007"]}}} (0.2480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cf3af1000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.3867ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eb21e66cf3af100000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eb21e66cf3af1000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af1000007", "content_type_id"=>"51af1eb21e66cf3af1000007", "_slug"=>"hidden", "site_id"=>"51af1eb11e66cf3af1000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 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::ContentEntry51af1eb21e66cf3af1000007", "_original_id"=>"51af1eb21e66cf3af100000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eb21e66cf3af100000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1eb11e66cf3af1000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af1000007", "_original_id"=>"51af1eb21e66cf3af100000c", "_keywords"=>["hidden"]}] flags=[] (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.5713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb11e66cf3af1000002", "parent_id"=>"51af1eb11e66cf3af1000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1eb11e66cf3af1000004", "site_id"=>"51af1eb11e66cf3af1000002", "_id"=>{"$ne"=>"51af1eb21e66cf3af100000e"}}} (0.4640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1eb11e66cf3af1000004"]}} 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"=>"51af1eb21e66cf3af100000e", "parent_ids"=>["51af1eb11e66cf3af1000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eb11e66cf3af1000002", "parent_id"=>"51af1eb11e66cf3af1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb11e66cf3af1000002", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cf3af100000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb21e66cf3af100000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eb21e66cf3af100000e"]}} 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"=>"51af1eb21e66cf3af100000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2372ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eb21e66cf3af100000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1eb11e66cf3af1000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af100000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb11e66cf3af1000002", "parent_id"=>"51af1eb11e66cf3af1000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af1eb11e66cf3af1000004", "site_id"=>"51af1eb11e66cf3af1000002", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000010"}}} (0.3839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb11e66cf3af1000004", "site_id"=>"51af1eb11e66cf3af1000002", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000010"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"51af1eb11e66cf3af1000004", "site_id"=>"51af1eb11e66cf3af1000002", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1eb11e66cf3af1000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb21e66cf3af1000010", "parent_ids"=>["51af1eb11e66cf3af1000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eb11e66cf3af1000002", "parent_id"=>"51af1eb11e66cf3af1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb11e66cf3af1000002", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cf3af1000010"]}}, "$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"=>"51af1eb21e66cf3af1000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eb21e66cf3af1000010"]}} 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"=>"51af1eb21e66cf3af1000010"}, "$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"=>"51af1eb21e66cf3af1000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1eb11e66cf3af1000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af1000010", "_keywords"=>["en:search"]}] flags=[] (0.1347ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb11e66cf3af1000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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={"$query"=>{"_id"=>"51af1eb11e66cf3af1000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5953ms) 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.1160ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.9208ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1599ms) 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.9489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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_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_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"=>"51af1eb21e66cf3af1000012", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0228679fb986444d80f584150212a143f3bbe5d4", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"5ucpfaiZczzfPCLFY6Jh", "api_key"=>"1a74c456584039d3b4561139f77e4f6d438d7d58", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eb21e66cf3af1000013", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:19:13 UTC, "updated_at"=>2013-06-05 11:19:14 UTC, "memberships"=>[{"_id"=>"51af1eb21e66cf3af1000014", "role"=>"admin", "account_id"=>"51af1eb21e66cf3af1000012"}]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb21e66cf3af1000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb21e66cf3af1000013", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000015"}}} (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb21e66cf3af1000015", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eb21e66cf3af1000013", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cf3af1000015"]}}, "$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"=>"51af1eb21e66cf3af1000015"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3009ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eb21e66cf3af1000015"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af1000015"}, "$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"=>"51af1eb21e66cf3af1000016", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eb21e66cf3af1000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af1000015", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb21e66cf3af1000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb21e66cf3af1000013", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000017"}}} (0.4323ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb21e66cf3af1000013", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000017"}}, "$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"=>nil, "site_id"=>"51af1eb21e66cf3af1000013", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000017"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb21e66cf3af1000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eb21e66cf3af1000013", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cf3af1000017"]}}, "$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"=>"51af1eb21e66cf3af1000017"}, "$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"=>["51af1eb21e66cf3af1000017"]}} 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_content_types selector={"site_id"=>"51af1eb21e66cf3af1000013", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1eb21e66cf3af1000018", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eb21e66cf3af1000013", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eb21e66cf3af1000019", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eb21e66cf3af1000019", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1eb21e66cf3af1000018"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1eb21e66cf3af100001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}}} flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb21e66cf3af100001b"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cf3af1000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3803ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eb21e66cf3af1000018", "_slug"=>"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::ContentEntry51af1eb21e66cf3af1000018"]}}} (0.3350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eb21e66cf3af100001b", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eb21e66cf3af1000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af1000018", "content_type_id"=>"51af1eb21e66cf3af1000018", "_slug"=>"findable-entry", "site_id"=>"51af1eb21e66cf3af1000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af1000018", "_original_id"=>"51af1eb21e66cf3af100001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2937ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eb21e66cf3af100001c", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1eb21e66cf3af1000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af1000018", "_original_id"=>"51af1eb21e66cf3af100001b", "_keywords"=>["findable", "entry"]}] flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb21e66cf3af100001d"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cf3af1000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eb21e66cf3af1000018", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2298ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cf3af1000018"]}}} (0.2639ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cf3af1000018"]}, "_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"=>"51af1eb21e66cf3af100001d", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eb21e66cf3af1000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af1000018", "content_type_id"=>"51af1eb21e66cf3af1000018", "_slug"=>"hidden", "site_id"=>"51af1eb21e66cf3af1000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af1000018", "_original_id"=>"51af1eb21e66cf3af100001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eb21e66cf3af100001e", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1eb21e66cf3af1000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af1000018", "_original_id"=>"51af1eb21e66cf3af100001d", "_keywords"=>["hidden"]}] flags=[] (0.1030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb21e66cf3af1000013", "parent_id"=>"51af1eb21e66cf3af1000015", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2971ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1eb21e66cf3af1000015", "site_id"=>"51af1eb21e66cf3af1000013", "_id"=>{"$ne"=>"51af1eb21e66cf3af100001f"}}} (0.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1eb21e66cf3af1000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb21e66cf3af100001f", "parent_ids"=>["51af1eb21e66cf3af1000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eb21e66cf3af1000013", "parent_id"=>"51af1eb21e66cf3af1000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cf3af100001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb21e66cf3af100001f"}, "$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"=>["51af1eb21e66cf3af100001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af100001f"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2730ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eb21e66cf3af1000020", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1eb21e66cf3af1000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af100001f", "_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.5391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb21e66cf3af1000013", "parent_id"=>"51af1eb21e66cf3af1000015", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af1eb21e66cf3af1000015", "site_id"=>"51af1eb21e66cf3af1000013", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000021"}}} (0.3729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb21e66cf3af1000015", "site_id"=>"51af1eb21e66cf3af1000013", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000021"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb21e66cf3af1000015", "site_id"=>"51af1eb21e66cf3af1000013", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000021"}}, "$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={"_id"=>{"$in"=>["51af1eb21e66cf3af1000015"]}} 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"=>"51af1eb21e66cf3af1000021", "parent_ids"=>["51af1eb21e66cf3af1000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eb21e66cf3af1000013", "parent_id"=>"51af1eb21e66cf3af1000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cf3af1000021"]}}, "$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"=>"51af1eb21e66cf3af1000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2580ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eb21e66cf3af1000021"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af1000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eb21e66cf3af1000022", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1eb21e66cf3af1000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af1000021", "_keywords"=>["en:search"]}] flags=[] (0.3002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "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"=>"51af1eb21e66cf3af1000013"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af1eb21e66cf3af1000015"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:19:14 UTC}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cf3af1000015"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af1000015"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1eb21e66cf3af1000016"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eb21e66cf3af1000013"}}} flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.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.2952ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eb21e66cf3af1000023", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:19:13 UTC, "updated_at"=>2013-06-05 11:19:14 UTC, "memberships"=>[{"_id"=>"51af1eb21e66cf3af1000024", "role"=>"admin", "account_id"=>"51af1eb21e66cf3af1000012"}]}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb21e66cf3af1000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb21e66cf3af1000023", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000025"}}} (0.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb21e66cf3af1000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eb21e66cf3af1000023", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000023", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cf3af1000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb21e66cf3af1000025"}, "$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"=>["51af1eb21e66cf3af1000025"]}} 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"=>"51af1eb21e66cf3af1000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eb21e66cf3af1000026", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eb21e66cf3af1000023"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af1000025", "_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"=>"51af1eb21e66cf3af1000023", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb21e66cf3af1000023", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000027"}}} (0.5808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb21e66cf3af1000023", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000027"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb21e66cf3af1000023", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000027"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb21e66cf3af1000027", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eb21e66cf3af1000023", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000023", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cf3af1000027"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb21e66cf3af1000027"}, "$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"=>["51af1eb21e66cf3af1000027"]}} 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"=>"51af1eb21e66cf3af1000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb21e66cf3af1000023", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000028"}}} (0.6211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb21e66cf3af1000023", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000028"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"51af1eb21e66cf3af1000023", "_id"=>{"$ne"=>"51af1eb21e66cf3af1000028"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb21e66cf3af1000028", "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"=>"51af1eb21e66cf3af1000023", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000023", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cf3af1000028"]}}, "$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"=>"51af1eb21e66cf3af1000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2952ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eb21e66cf3af1000028"]}} 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"=>"51af1eb21e66cf3af1000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2723ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eb21e66cf3af1000029", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af1eb21e66cf3af1000023"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eb21e66cf3af1000028", "_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.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af1eb21e66cf3af1000023", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af1eb21e66cf3af100002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eb21e66cf3af1000023", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eb21e66cf3af100002b", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eb21e66cf3af100002b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb21e66cf3af100002c"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cf3af100002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4523ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eb21e66cf3af100002a", "_slug"=>"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::ContentEntry51af1eb21e66cf3af100002a"]}}} (0.3810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eb21e66cf3af100002c", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eb21e66cf3af100002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af100002a", "content_type_id"=>"51af1eb21e66cf3af100002a", "_slug"=>"not-findable-entry", "site_id"=>"51af1eb21e66cf3af1000023", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af100002a", "_original_id"=>"51af1eb21e66cf3af100002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eb21e66cf3af100002d", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af1eb21e66cf3af1000023", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eb21e66cf3af100002a", "_original_id"=>"51af1eb21e66cf3af100002c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb11e66cfdb2e000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb11e66cfdb2e000002", "_id"=>{"$ne"=>"51af1eb21e66cfdb2e000004"}}} (0.5579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb21e66cfdb2e000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eb11e66cfdb2e000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb21e66cfdb2e000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3347ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:19:14 +0200 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb11e66cfdb2e000002", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cfdb2e000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (56.2627ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eb21e66cfdb2e000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1521ms) Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6077ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 79ms (Views: 74.3ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:19:14 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af1eb21e66cf3af1000013", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4702ms) Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:19:14 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "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.5760ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:19:14 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:19:14 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb21e66cf3af1000013", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af1eb21e66cf3af1000013", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2871ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6516ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4060ms) 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.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb11e66cfdb2e000002", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb11e66cfdb2e000002", "_id"=>{"$ne"=>"51af1eb21e66cfdb2e000005"}}} (0.3457ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb21e66cfdb2e000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eb11e66cfdb2e000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb11e66cfdb2e000002", "template_dependencies.en"=>{"$in"=>["51af1eb21e66cfdb2e000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3083ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb21e66cfdb2e000005"}, "$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"=>["51af1eb21e66cfdb2e000005"]}} 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"=>"51af1eb11e66cfdb2e000002", "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"=>"51af1eb21e66cfdb2e000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eb11e66cfdb2e000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eb21e66cfdb2e000007", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eb21e66cfdb2e000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af1eb21e66cfdb2e000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1eb21e66cfdb2e000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}}} flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb21e66cfdb2e000009"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cfdb2e000006"]}} 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_content_entries selector={"content_type_id"=>"51af1eb21e66cfdb2e000006", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3598ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cfdb2e000006"]}}} (0.4771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eb21e66cfdb2e000009", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eb21e66cfdb2e000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eb21e66cfdb2e000006", "content_type_id"=>"51af1eb21e66cfdb2e000006", "_slug"=>"findable-entry", "site_id"=>"51af1eb11e66cfdb2e000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:14 UTC, "created_at"=>2013-06-05 11:19:14 UTC}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb31e66cfdb2e00000a"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cfdb2e000006"]}} 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"=>"51af1eb21e66cfdb2e000006", "_slug"=>"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::ContentEntry51af1eb21e66cfdb2e000006"]}}} (0.3231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb21e66cfdb2e000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5100ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eb31e66cfdb2e00000a", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eb21e66cfdb2e000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eb21e66cfdb2e000006", "content_type_id"=>"51af1eb21e66cfdb2e000006", "_slug"=>"hidden", "site_id"=>"51af1eb11e66cfdb2e000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:15 UTC, "created_at"=>2013-06-05 11:19:15 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.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"subdomain"=>"acme"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"acme"} 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"=>"51af1eb31e66cfdb2e00000c", "locales"=>["en"], "domains"=>["acme.example.com"], "name"=>"Acme Website", "subdomain"=>"acme", "created_at"=>2013-06-05 11:19:13 UTC, "updated_at"=>2013-06-05 11:19:15 UTC}] flags=[] (0.1030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb31e66cfdb2e00000c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (11.8101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb31e66cfdb2e00000c", "_id"=>{"$ne"=>"51af1eb31e66cfdb2e00000d"}}} (0.6499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb31e66cfdb2e00000d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eb31e66cfdb2e00000c", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:15 UTC, "created_at"=>2013-06-05 11:19:15 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb31e66cfdb2e00000c", "template_dependencies.en"=>{"$in"=>["51af1eb31e66cfdb2e00000d"]}}, "$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"=>"51af1eb31e66cfdb2e00000d"}, "$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"=>["51af1eb31e66cfdb2e00000d"]}} 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"=>"51af1eb31e66cfdb2e00000c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb31e66cfdb2e00000c", "_id"=>{"$ne"=>"51af1eb41e66cfdb2e00000e"}}} (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb31e66cfdb2e00000c", "_id"=>{"$ne"=>"51af1eb41e66cfdb2e00000e"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb31e66cfdb2e00000c", "_id"=>{"$ne"=>"51af1eb41e66cfdb2e00000e"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"51af1eb41e66cfdb2e00000e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eb31e66cfdb2e00000c", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:16 UTC, "created_at"=>2013-06-05 11:19:16 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb31e66cfdb2e00000c", "template_dependencies.en"=>{"$in"=>["51af1eb41e66cfdb2e00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb41e66cfdb2e00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2933ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eb41e66cfdb2e00000e"]}} 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"=>"51af1eb31e66cfdb2e00000c", "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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5372ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5987ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5000ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4008ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1eb41e66cfdb2e000010", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"86796b923e9c0016fbb1de3ff7721c54a3b8b597", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"1sNNFxHnSMr6Bay9SZws", "api_key"=>"bef57f3ca4faba76b94b133c100ab2e02043afd8", "updated_at"=>2013-06-05 11:19:16 UTC, "created_at"=>2013-06-05 11:19:16 UTC}] flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eb41e66cfdb2e000011", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:19:13 UTC, "updated_at"=>2013-06-05 11:19:16 UTC, "memberships"=>[{"_id"=>"51af1eb41e66cfdb2e000012", "role"=>"admin", "account_id"=>"51af1eb41e66cfdb2e000010"}]}] flags=[] (0.1233ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb41e66cfdb2e000011", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6669ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb41e66cfdb2e000011", "_id"=>{"$ne"=>"51af1eb41e66cfdb2e000013"}}} (0.4449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb41e66cfdb2e000013", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eb41e66cfdb2e000011", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:16 UTC, "created_at"=>2013-06-05 11:19:16 UTC}] flags=[] (0.1798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb41e66cfdb2e000011", "template_dependencies.en"=>{"$in"=>["51af1eb41e66cfdb2e000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb41e66cfdb2e000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eb41e66cfdb2e000013"]}} 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"=>"51af1eb41e66cfdb2e000011", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4828ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb41e66cfdb2e000011", "_id"=>{"$ne"=>"51af1eb41e66cfdb2e000014"}}} (0.6759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb41e66cfdb2e000011", "_id"=>{"$ne"=>"51af1eb41e66cfdb2e000014"}}, "$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"=>nil, "site_id"=>"51af1eb41e66cfdb2e000011", "_id"=>{"$ne"=>"51af1eb41e66cfdb2e000014"}}, "$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"=>"51af1eb41e66cfdb2e000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eb41e66cfdb2e000011", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:16 UTC, "created_at"=>2013-06-05 11:19:16 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb41e66cfdb2e000011", "template_dependencies.en"=>{"$in"=>["51af1eb41e66cfdb2e000014"]}}, "$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"=>"51af1eb41e66cfdb2e000014"}, "$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"=>["51af1eb41e66cfdb2e000014"]}} 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"=>"51af1eb41e66cfdb2e000011", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8509ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1eb41e66cfdb2e000015", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eb41e66cfdb2e000011", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eb41e66cfdb2e000016", "updated_at"=>2013-06-05 11:19:16 UTC, "created_at"=>2013-06-05 11:19:16 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eb41e66cfdb2e000016", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1eb41e66cfdb2e000015"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1eb41e66cfdb2e000017", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:19:16 UTC, "created_at"=>2013-06-05 11:19:16 UTC}}} flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb41e66cfdb2e000018"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb41e66cfdb2e000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eb41e66cfdb2e000015", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3688ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb41e66cfdb2e000015"]}}} (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eb41e66cfdb2e000018", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eb41e66cfdb2e000015", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eb41e66cfdb2e000015", "content_type_id"=>"51af1eb41e66cfdb2e000015", "_slug"=>"findable-entry", "site_id"=>"51af1eb41e66cfdb2e000011", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:16 UTC, "created_at"=>2013-06-05 11:19:16 UTC}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb51e66cfdb2e000019"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb41e66cfdb2e000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eb41e66cfdb2e000015", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6149ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb41e66cfdb2e000015"]}}} (0.4501ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb41e66cfdb2e000015"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eb51e66cfdb2e000019", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eb41e66cfdb2e000015", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eb41e66cfdb2e000015", "content_type_id"=>"51af1eb41e66cfdb2e000015", "_slug"=>"hidden", "site_id"=>"51af1eb41e66cfdb2e000011", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:17 UTC, "created_at"=>2013-06-05 11:19:17 UTC}] 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.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb41e66cfdb2e000011", "parent_id"=>"51af1eb41e66cfdb2e000013", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af1eb41e66cfdb2e000013", "site_id"=>"51af1eb41e66cfdb2e000011", "_id"=>{"$ne"=>"51af1eb51e66cfdb2e00001a"}}} (0.4320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1eb41e66cfdb2e000013"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4492ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb51e66cfdb2e00001a", "parent_ids"=>["51af1eb41e66cfdb2e000013"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eb41e66cfdb2e000011", "parent_id"=>"51af1eb41e66cfdb2e000013", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:17 UTC, "created_at"=>2013-06-05 11:19:17 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb41e66cfdb2e000011", "template_dependencies.en"=>{"$in"=>["51af1eb51e66cfdb2e00001a"]}}, "$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"=>"51af1eb51e66cfdb2e00001a"}, "$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"=>["51af1eb51e66cfdb2e00001a"]}} 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.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb41e66cfdb2e000011", "parent_id"=>"51af1eb41e66cfdb2e000013", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af1eb41e66cfdb2e000013", "site_id"=>"51af1eb41e66cfdb2e000011", "_id"=>{"$ne"=>"51af1eb51e66cfdb2e00001b"}}} (0.6692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eb41e66cfdb2e000013", "site_id"=>"51af1eb41e66cfdb2e000011", "_id"=>{"$ne"=>"51af1eb51e66cfdb2e00001b"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"51af1eb41e66cfdb2e000013", "site_id"=>"51af1eb41e66cfdb2e000011", "_id"=>{"$ne"=>"51af1eb51e66cfdb2e00001b"}}, "$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={"_id"=>{"$in"=>["51af1eb41e66cfdb2e000013"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4287ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb51e66cfdb2e00001b", "parent_ids"=>["51af1eb41e66cfdb2e000013"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eb41e66cfdb2e000011", "parent_id"=>"51af1eb41e66cfdb2e000013", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:17 UTC, "created_at"=>2013-06-05 11:19:17 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb41e66cfdb2e000011", "template_dependencies.en"=>{"$in"=>["51af1eb51e66cfdb2e00001b"]}}, "$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"=>"51af1eb51e66cfdb2e00001b"}, "$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"=>["51af1eb51e66cfdb2e00001b"]}} 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"=>"51af1eb41e66cfdb2e000011", "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"=>"51af1eb41e66cfdb2e000011"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3293ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af1eb41e66cfdb2e000013"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:19:18 UTC}} flags=[] (0.1233ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb41e66cfdb2e000011", "template_dependencies.en"=>{"$in"=>["51af1eb41e66cfdb2e000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_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.5059ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eb61e66cfdb2e00001c", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:19:13 UTC, "updated_at"=>2013-06-05 11:19:18 UTC, "memberships"=>[{"_id"=>"51af1eb61e66cfdb2e00001d", "role"=>"admin", "account_id"=>"51af1eb41e66cfdb2e000010"}]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb61e66cfdb2e00001c", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb61e66cfdb2e00001c", "_id"=>{"$ne"=>"51af1eb61e66cfdb2e00001e"}}} (0.5603ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb61e66cfdb2e00001e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eb61e66cfdb2e00001c", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:18 UTC, "created_at"=>2013-06-05 11:19:18 UTC}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb61e66cfdb2e00001c", "template_dependencies.en"=>{"$in"=>["51af1eb61e66cfdb2e00001e"]}}, "$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"=>"51af1eb61e66cfdb2e00001e"}, "$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"=>["51af1eb61e66cfdb2e00001e"]}} 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"=>"51af1eb61e66cfdb2e00001c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5193ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb61e66cfdb2e00001c", "_id"=>{"$ne"=>"51af1eb61e66cfdb2e00001f"}}} (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb61e66cfdb2e00001c", "_id"=>{"$ne"=>"51af1eb61e66cfdb2e00001f"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6373ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb61e66cfdb2e00001c", "_id"=>{"$ne"=>"51af1eb61e66cfdb2e00001f"}}, "$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"=>"51af1eb61e66cfdb2e00001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eb61e66cfdb2e00001c", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:18 UTC, "created_at"=>2013-06-05 11:19:18 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb61e66cfdb2e00001c", "template_dependencies.en"=>{"$in"=>["51af1eb61e66cfdb2e00001f"]}}, "$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"=>"51af1eb61e66cfdb2e00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5498ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eb61e66cfdb2e00001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eb61e66cfdb2e00001c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6030ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eb61e66cfdb2e00001c", "_id"=>{"$ne"=>"51af1eb61e66cfdb2e000020"}}} (0.5732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eb61e66cfdb2e00001c", "_id"=>{"$ne"=>"51af1eb61e66cfdb2e000020"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"51af1eb61e66cfdb2e00001c", "_id"=>{"$ne"=>"51af1eb61e66cfdb2e000020"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.1748ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eb61e66cfdb2e000020", "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"=>"51af1eb61e66cfdb2e00001c", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:18 UTC, "created_at"=>2013-06-05 11:19:18 UTC}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb61e66cfdb2e00001c", "template_dependencies.en"=>{"$in"=>["51af1eb61e66cfdb2e000020"]}}, "$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"=>"51af1eb61e66cfdb2e000020"}, "$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"=>["51af1eb61e66cfdb2e000020"]}} 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"=>"51af1eb61e66cfdb2e00001c", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1eb71e66cfdb2e000021", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eb61e66cfdb2e00001c", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eb71e66cfdb2e000022", "updated_at"=>2013-06-05 11:19:19 UTC, "created_at"=>2013-06-05 11:19:19 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eb71e66cfdb2e000022", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb71e66cfdb2e000023"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb71e66cfdb2e000021"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eb71e66cfdb2e000021", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb71e66cfdb2e000021"]}}} (0.3583ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eb71e66cfdb2e000023", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eb71e66cfdb2e000021", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eb71e66cfdb2e000021", "content_type_id"=>"51af1eb71e66cfdb2e000021", "_slug"=>"not-findable-entry", "site_id"=>"51af1eb61e66cfdb2e00001c", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:19 UTC, "created_at"=>2013-06-05 11:19:19 UTC}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eb41e66cfdb2e000018"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb41e66cfdb2e000015"]}} 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={"_id"=>{"$ne"=>"51af1eb51e66cfdb2e000019"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb41e66cfdb2e000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb41e66cfdb2e000015"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1040ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1eb41e66cfdb2e000015"} update={"$set"=>{"updated_at"=>2013-06-05 11:19:19 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"=>"51af1eb41e66cfdb2e000015"} 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.1020ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:19:19 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb41e66cfdb2e000011", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6673ms) Rendered text template (0.0ms) Completed 200 OK in 29ms (Views: 24.0ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:19:19 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb41e66cfdb2e000011", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4740ms) Rendered text template (0.0ms) Completed 200 OK in 203ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1eb41e66cfdb2e000015"} 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"=>"51af1eb41e66cfdb2e000015", "updated_at"=>{"$lt"=>2013-06-05 11:19:19 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eb41e66cfdb2e000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1eb41e66cfdb2e000011"}, "$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_content_types selector={"$query"=>{"_id"=>"51af1eb41e66cfdb2e000015"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af1eb41e66cfdb2e000018"} update={"$set"=>{"updated_at"=>2013-06-05 11:19:20 UTC}} flags=[] (0.0901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1eb41e66cfdb2e000011"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af1eb41e66cfdb2e000015"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af1eb51e66cfdb2e000019"} update={"$set"=>{"updated_at"=>2013-06-05 11:19:20 UTC}} flags=[] (0.1009ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:19:20 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:19:20 +0200 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.6790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb41e66cfdb2e000011", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6909ms) Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:19:20 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6127ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eb41e66cfdb2e000011", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4618ms) Rendered text template (0.0ms) Completed 200 OK in 187ms (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.5519ms) 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.2898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8008ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9730ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8168ms) MOPED: 127.0.0.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.4928ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8461ms) MOPED: 127.0.0.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.1979ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} 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_accounts documents=[{"_id"=>"51af1ed41e66cfc61f000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6aa530e1bde9b1a6dbfb42e0f4b86e55e1683e6e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"mBouBGuMH5BEGpKDRqkD", "api_key"=>"71e26007ddf2f648a176df597bdcd6c48f6d5a7b", "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 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.6919ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1ed41e66cfc61f000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:19:48 UTC, "updated_at"=>2013-06-05 11:19:48 UTC, "memberships"=>[{"_id"=>"51af1ed41e66cfc61f000003", "role"=>"admin", "account_id"=>"51af1ed41e66cfc61f000001"}]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6628ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3351ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1ed41e66cfe44b000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"75310b8be8185a220b3019b2834d6dbe0dbe50c0", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"mCFftkNxgFmh8ScU2sx3", "api_key"=>"d2fefc6abe2ed0f2a02993f074fa8019270e141c", "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5183ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1ed41e66cfe44b000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:19:48 UTC, "updated_at"=>2013-06-05 11:19:48 UTC, "memberships"=>[{"_id"=>"51af1ed41e66cfe44b000003", "role"=>"admin", "account_id"=>"51af1ed41e66cfe44b000001"}]}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed41e66cfc61f000002", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed41e66cfc61f000002", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000004"}}} (0.3140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed41e66cfc61f000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1ed41e66cfc61f000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ed41e66cfc61f000004"}, "$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"=>{"site_id"=>"51af1ed41e66cfc61f000002", "template_dependencies.en"=>{"$in"=>["51af1ed41e66cfc61f000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2670ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ed41e66cfc61f000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed41e66cfc61f000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1ed41e66cfc61f000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1ed41e66cfc61f000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed41e66cfc61f000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed41e66cfc61f000002", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed41e66cfc61f000002", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000006"}}} (0.5429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed41e66cfc61f000002", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed41e66cfc61f000002", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5522ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed41e66cfc61f000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1ed41e66cfc61f000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000002", "template_dependencies.en"=>{"$in"=>["51af1ed41e66cfc61f000006"]}}, "$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"=>"51af1ed41e66cfc61f000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ed41e66cfc61f000006"]}} 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"=>"51af1ed41e66cfc61f000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4342ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1ed41e66cfc61f000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1ed41e66cfc61f000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1ed41e66cfc61f000008", "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC, "entries_custom_fields"=>[{"_id"=>"51af1ed41e66cfc61f000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2527ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1ed41e66cfc61f000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1ed41e66cfc61f000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC}}} flags=[] (0.3111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed41e66cfc61f00000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed41e66cfc61f000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ed41e66cfc61f000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed41e66cfc61f000007"]}}} (0.4177ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ed41e66cfc61f00000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ed41e66cfc61f000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ed41e66cfc61f000007", "content_type_id"=>"51af1ed41e66cfc61f000007", "_slug"=>"findable-entry", "site_id"=>"51af1ed41e66cfc61f000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1ed41e66cfc61f000007", "_original_id"=>"51af1ed41e66cfc61f00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4044ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1ed41e66cfc61f00000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1ed41e66cfc61f000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1ed41e66cfc61f000007", "_original_id"=>"51af1ed41e66cfc61f00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed41e66cfc61f00000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed41e66cfc61f000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ed41e66cfc61f000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3998ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed41e66cfc61f000007"]}}} (0.3951ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed41e66cfc61f000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ed41e66cfc61f00000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ed41e66cfc61f000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ed41e66cfc61f000007", "content_type_id"=>"51af1ed41e66cfc61f000007", "_slug"=>"hidden", "site_id"=>"51af1ed41e66cfc61f000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1ed41e66cfc61f000007", "_original_id"=>"51af1ed41e66cfc61f00000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1ed41e66cfc61f00000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1ed41e66cfc61f000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1ed41e66cfc61f000007", "_original_id"=>"51af1ed41e66cfc61f00000c", "_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.7112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed41e66cfc61f000002", "parent_id"=>"51af1ed41e66cfc61f000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5159ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1ed41e66cfc61f000004", "site_id"=>"51af1ed41e66cfc61f000002", "_id"=>{"$ne"=>"51af1ed41e66cfc61f00000e"}}} (0.4919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1ed41e66cfc61f000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed41e66cfc61f00000e", "parent_ids"=>["51af1ed41e66cfc61f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1ed41e66cfc61f000002", "parent_id"=>"51af1ed41e66cfc61f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000002", "template_dependencies.en"=>{"$in"=>["51af1ed41e66cfc61f00000e"]}}, "$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"=>"51af1ed41e66cfc61f00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ed41e66cfc61f00000e"]}} 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"=>"51af1ed41e66cfc61f00000e"}, "$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"=>"51af1ed41e66cfc61f00000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1ed41e66cfc61f000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed41e66cfc61f00000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6747ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed41e66cfc61f000002", "parent_id"=>"51af1ed41e66cfc61f000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4010ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1ed41e66cfc61f000004", "site_id"=>"51af1ed41e66cfc61f000002", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000010"}}} (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ed41e66cfc61f000004", "site_id"=>"51af1ed41e66cfc61f000002", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000010"}}, "$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"=>"51af1ed41e66cfc61f000004", "site_id"=>"51af1ed41e66cfc61f000002", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1ed41e66cfc61f000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed41e66cfc61f000010", "parent_ids"=>["51af1ed41e66cfc61f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1ed41e66cfc61f000002", "parent_id"=>"51af1ed41e66cfc61f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC}] flags=[] (0.3669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000002", "template_dependencies.en"=>{"$in"=>["51af1ed41e66cfc61f000010"]}}, "$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"=>"51af1ed41e66cfc61f000010"}, "$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"=>["51af1ed41e66cfc61f000010"]}} 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"=>"51af1ed41e66cfc61f000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1ed41e66cfc61f000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1ed41e66cfc61f000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed41e66cfc61f000010", "_keywords"=>["en:search"]}] flags=[] (0.1259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1ed41e66cfc61f000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2344ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4811ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4439ms) 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=>"active_search_mongoid_models"} (0.5548ms) 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.5312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3107ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2623ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1ed41e66cfc61f000012", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f049310f9603605899a44d563d789f52f7dba0c6", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"T47Rhp9iKLSNpAjVW8Ay", "api_key"=>"f63a69da0c50f93b82265e8201cf4bc47c354646", "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 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.3438ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1ed41e66cfc61f000013", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:19:48 UTC, "updated_at"=>2013-06-05 11:19:48 UTC, "memberships"=>[{"_id"=>"51af1ed41e66cfc61f000014", "role"=>"admin", "account_id"=>"51af1ed41e66cfc61f000012"}]}] flags=[] (0.1338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed41e66cfc61f000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3338ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed41e66cfc61f000013", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000015"}}} (0.3519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed41e66cfc61f000015", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1ed41e66cfc61f000013", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000013", "template_dependencies.en"=>{"$in"=>["51af1ed41e66cfc61f000015"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ed41e66cfc61f000015"}, "$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"=>["51af1ed41e66cfc61f000015"]}} 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"=>"51af1ed41e66cfc61f000015"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1ed41e66cfc61f000016", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1ed41e66cfc61f000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed41e66cfc61f000015", "_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"=>"51af1ed41e66cfc61f000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4041ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed41e66cfc61f000013", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000017"}}} (0.4528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed41e66cfc61f000013", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000017"}}, "$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"=>nil, "site_id"=>"51af1ed41e66cfc61f000013", "_id"=>{"$ne"=>"51af1ed41e66cfc61f000017"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af1ed41e66cfc61f000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1ed41e66cfc61f000013", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:48 UTC, "created_at"=>2013-06-05 11:19:48 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000013", "template_dependencies.en"=>{"$in"=>["51af1ed41e66cfc61f000017"]}}, "$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"=>"51af1ed41e66cfc61f000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2830ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ed41e66cfc61f000017"]}} 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"=>"51af1ed41e66cfc61f000013", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed41e66cfe44b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4799ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1ed51e66cfc61f000018", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1ed41e66cfc61f000013", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1ed51e66cfc61f000019", "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC, "entries_custom_fields"=>[{"_id"=>"51af1ed51e66cfc61f000019", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed41e66cfe44b000002", "_id"=>{"$ne"=>"51af1ed51e66cfe44b000004"}}} (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed51e66cfe44b000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1ed41e66cfe44b000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] flags=[] (0.2630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ed51e66cfe44b000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2759ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1ed51e66cfc61f000018"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1ed51e66cfc61f00001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}}} flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed51e66cfc61f00001b"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f000018"]}} 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"=>"51af1ed51e66cfc61f000018", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3240ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f000018"]}}} (0.4051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ed51e66cfc61f00001b", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ed51e66cfc61f000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ed51e66cfc61f000018", "content_type_id"=>"51af1ed51e66cfc61f000018", "_slug"=>"findable-entry", "site_id"=>"51af1ed41e66cfc61f000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 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::ContentEntry51af1ed51e66cfc61f000018", "_original_id"=>"51af1ed51e66cfc61f00001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1ed51e66cfc61f00001c", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1ed41e66cfc61f000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1ed51e66cfc61f000018", "_original_id"=>"51af1ed51e66cfc61f00001b", "_keywords"=>["findable", "entry"]}] flags=[] (0.1221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed51e66cfc61f00001d"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ed51e66cfc61f000018", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2372ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f000018"]}}} (0.3130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f000018"]}, "_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"=>"51af1ed51e66cfc61f00001d", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ed51e66cfc61f000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ed51e66cfc61f000018", "content_type_id"=>"51af1ed51e66cfc61f000018", "_slug"=>"hidden", "site_id"=>"51af1ed41e66cfc61f000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1ed51e66cfc61f000018", "_original_id"=>"51af1ed51e66cfc61f00001d"}, "$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"=>"51af1ed51e66cfc61f00001e", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1ed41e66cfc61f000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1ed51e66cfc61f000018", "_original_id"=>"51af1ed51e66cfc61f00001d", "_keywords"=>["hidden"]}] 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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed41e66cfc61f000013", "parent_id"=>"51af1ed41e66cfc61f000015", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5350ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1ed41e66cfc61f000015", "site_id"=>"51af1ed41e66cfc61f000013", "_id"=>{"$ne"=>"51af1ed51e66cfc61f00001f"}}} (0.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1ed41e66cfc61f000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed51e66cfc61f00001f", "parent_ids"=>["51af1ed41e66cfc61f000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1ed41e66cfc61f000013", "parent_id"=>"51af1ed41e66cfc61f000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000013", "template_dependencies.en"=>{"$in"=>["51af1ed51e66cfc61f00001f"]}}, "$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"=>"51af1ed51e66cfc61f00001f"}, "$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"=>["51af1ed51e66cfc61f00001f"]}} 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"=>"51af1ed51e66cfc61f00001f"}, "$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"=>"51af1ed51e66cfc61f000020", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1ed41e66cfc61f000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed51e66cfc61f00001f", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed41e66cfc61f000013", "parent_id"=>"51af1ed41e66cfc61f000015", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5059ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1ed41e66cfc61f000015", "site_id"=>"51af1ed41e66cfc61f000013", "_id"=>{"$ne"=>"51af1ed51e66cfc61f000021"}}} (0.5152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ed41e66cfc61f000015", "site_id"=>"51af1ed41e66cfc61f000013", "_id"=>{"$ne"=>"51af1ed51e66cfc61f000021"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ed41e66cfc61f000015", "site_id"=>"51af1ed41e66cfc61f000013", "_id"=>{"$ne"=>"51af1ed51e66cfc61f000021"}}, "$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={"_id"=>{"$in"=>["51af1ed41e66cfc61f000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed51e66cfc61f000021", "parent_ids"=>["51af1ed41e66cfc61f000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1ed41e66cfc61f000013", "parent_id"=>"51af1ed41e66cfc61f000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000013", "template_dependencies.en"=>{"$in"=>["51af1ed51e66cfc61f000021"]}}, "$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"=>"51af1ed51e66cfc61f000021"}, "$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"=>["51af1ed51e66cfc61f000021"]}} 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"=>"51af1ed51e66cfc61f000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>{"site_id"=>"51af1ed41e66cfe44b000002", "template_dependencies.en"=>{"$in"=>["51af1ed51e66cfe44b000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (56.4930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1ed51e66cfc61f000022", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1ed41e66cfc61f000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed51e66cfc61f000021", "_keywords"=>["en:search"]}] flags=[] (0.1349ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ed51e66cfe44b000004"]}} 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={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000013", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1ed41e66cfc61f000013"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2482ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af1ed41e66cfc61f000015"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:19:49 UTC}} flags=[] (0.1340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000013", "template_dependencies.en"=>{"$in"=>["51af1ed41e66cfc61f000015"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed41e66cfc61f000015"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5047ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1ed41e66cfc61f000016"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1ed41e66cfc61f000013"}}} flags=[] (0.1142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_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"=>"51af1ed51e66cfc61f000023", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:19:48 UTC, "updated_at"=>2013-06-05 11:19:49 UTC, "memberships"=>[{"_id"=>"51af1ed51e66cfc61f000024", "role"=>"admin", "account_id"=>"51af1ed41e66cfc61f000012"}]}] flags=[] (0.1428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed51e66cfc61f000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5081ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed51e66cfc61f000023", "_id"=>{"$ne"=>"51af1ed51e66cfc61f000025"}}} (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed51e66cfc61f000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1ed51e66cfc61f000023", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed51e66cfc61f000023", "template_dependencies.en"=>{"$in"=>["51af1ed51e66cfc61f000025"]}}, "$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"=>"51af1ed51e66cfc61f000025"}, "$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"=>["51af1ed51e66cfc61f000025"]}} 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"=>"51af1ed51e66cfc61f000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4139ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1ed51e66cfc61f000026", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1ed51e66cfc61f000023"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed51e66cfc61f000025", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed51e66cfc61f000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed51e66cfc61f000023", "_id"=>{"$ne"=>"51af1ed51e66cfc61f000027"}}} (0.4921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed51e66cfc61f000023", "_id"=>{"$ne"=>"51af1ed51e66cfc61f000027"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed51e66cfc61f000023", "_id"=>{"$ne"=>"51af1ed51e66cfc61f000027"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3712ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed51e66cfc61f000027", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1ed51e66cfc61f000023", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed51e66cfc61f000023", "template_dependencies.en"=>{"$in"=>["51af1ed51e66cfc61f000027"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ed51e66cfc61f000027"}, "$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"=>["51af1ed51e66cfc61f000027"]}} 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"=>"51af1ed51e66cfc61f000023", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed51e66cfc61f000023", "_id"=>{"$ne"=>"51af1ed51e66cfc61f000028"}}} (0.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed51e66cfc61f000023", "_id"=>{"$ne"=>"51af1ed51e66cfc61f000028"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed51e66cfc61f000023", "_id"=>{"$ne"=>"51af1ed51e66cfc61f000028"}}, "$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={"_id"=>{"$in"=>[]}} 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"=>"51af1ed51e66cfc61f000028", "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"=>"51af1ed51e66cfc61f000023", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed51e66cfc61f000023", "template_dependencies.en"=>{"$in"=>["51af1ed51e66cfc61f000028"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ed51e66cfc61f000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2751ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ed51e66cfc61f000028"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed51e66cfc61f000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1ed51e66cfc61f000029", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af1ed51e66cfc61f000023"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1ed51e66cfc61f000028", "_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.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af1ed51e66cfc61f000023", "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"=>"51af1ed51e66cfc61f00002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1ed51e66cfc61f000023", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1ed51e66cfc61f00002b", "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC, "entries_custom_fields"=>[{"_id"=>"51af1ed51e66cfc61f00002b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed51e66cfc61f00002c"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f00002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ed51e66cfc61f00002a", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2749ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f00002a"]}}} (0.3982ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ed51e66cfc61f00002c", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ed51e66cfc61f00002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ed51e66cfc61f00002a", "content_type_id"=>"51af1ed51e66cfc61f00002a", "_slug"=>"not-findable-entry", "site_id"=>"51af1ed51e66cfc61f000023", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1ed51e66cfc61f00002a", "_original_id"=>"51af1ed51e66cfc61f00002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1ed51e66cfc61f00002d", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af1ed51e66cfc61f000023", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1ed51e66cfc61f00002a", "_original_id"=>"51af1ed51e66cfc61f00002c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed51e66cfc61f00001b"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed51e66cfc61f00001d"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f000018"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f000018"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1040ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1ed51e66cfc61f000018"} update={"$set"=>{"updated_at"=>2013-06-05 11:19:49 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0758ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ed51e66cfc61f000018"} 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.1721ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:19:49 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6013ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000013", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7277ms) Rendered text template (0.0ms) Completed 200 OK in 78ms (Views: 72.8ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:19:49 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000013", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6483ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af1ed41e66cfc61f000013", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3650ms) Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1ed51e66cfc61f000018"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ed51e66cfc61f000018", "updated_at"=>{"$lt"=>2013-06-05 11:19:49 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfc61f000018"]}} 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_sites selector={"$query"=>{"_id"=>"51af1ed41e66cfc61f000013"}, "$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_content_types selector={"$query"=>{"_id"=>"51af1ed51e66cfc61f000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4210ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af1ed51e66cfc61f00001b"} update={"$set"=>{"updated_at"=>2013-06-05 11:19:49 UTC}} flags=[] (0.0992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1ed51e66cfc61f000018", "_original_id"=>"51af1ed51e66cfc61f00001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1ed51e66cfc61f00001c"} update={"$set"=>{"_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1ed41e66cfc61f000013", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1ed41e66cfc61f000013"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af1ed51e66cfc61f000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af1ed51e66cfc61f00001d"} update={"$set"=>{"updated_at"=>2013-06-05 11:19:49 UTC}} flags=[] (0.0818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1ed51e66cfc61f000018", "_original_id"=>"51af1ed51e66cfc61f00001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1ed51e66cfc61f00001e"} update={"$set"=>{"_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1ed41e66cfc61f000013", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.0989ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:19:49 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:19:49 +0200 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.5839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000013", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:19:49 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfc61f000013", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$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=active_search_mongoid_models selector={"_stored.site_id"=>"51af1ed41e66cfc61f000013", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5279ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4790ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4969ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4852ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5538ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed41e66cfe44b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6609ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed41e66cfe44b000002", "_id"=>{"$ne"=>"51af1ed51e66cfe44b000005"}}} (0.4752ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed51e66cfe44b000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1ed41e66cfe44b000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed41e66cfe44b000002", "template_dependencies.en"=>{"$in"=>["51af1ed51e66cfe44b000005"]}}, "$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"=>"51af1ed51e66cfe44b000005"}, "$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"=>["51af1ed51e66cfe44b000005"]}} 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"=>"51af1ed41e66cfe44b000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1ed51e66cfe44b000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1ed41e66cfe44b000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1ed51e66cfe44b000007", "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC, "entries_custom_fields"=>[{"_id"=>"51af1ed51e66cfe44b000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2356ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1ed51e66cfe44b000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1ed51e66cfe44b000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}}} flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed51e66cfe44b000009"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfe44b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ed51e66cfe44b000006", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2489ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfe44b000006"]}}} (0.5620ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ed51e66cfe44b000009", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ed51e66cfe44b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ed51e66cfe44b000006", "content_type_id"=>"51af1ed51e66cfe44b000006", "_slug"=>"findable-entry", "site_id"=>"51af1ed41e66cfe44b000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed51e66cfe44b00000a"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfe44b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ed51e66cfe44b000006", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3910ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfe44b000006"]}}} (0.3159ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed51e66cfe44b000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4177ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ed51e66cfe44b00000a", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ed51e66cfe44b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ed51e66cfe44b000006", "content_type_id"=>"51af1ed51e66cfe44b000006", "_slug"=>"hidden", "site_id"=>"51af1ed41e66cfe44b000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:49 UTC, "created_at"=>2013-06-05 11:19:49 UTC}] 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.6437ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"subdomain"=>"acme"}, "$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_sites selector={"subdomain"=>"acme"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2098ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1ed61e66cfe44b00000c", "locales"=>["en"], "domains"=>["acme.example.com"], "name"=>"Acme Website", "subdomain"=>"acme", "created_at"=>2013-06-05 11:19:48 UTC, "updated_at"=>2013-06-05 11:19:50 UTC}] flags=[] (0.1128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed61e66cfe44b00000c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4668ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed61e66cfe44b00000c", "_id"=>{"$ne"=>"51af1ed61e66cfe44b00000d"}}} (0.5400ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed61e66cfe44b00000d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1ed61e66cfe44b00000c", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:50 UTC, "created_at"=>2013-06-05 11:19:50 UTC}] flags=[] (0.1593ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed61e66cfe44b00000c", "template_dependencies.en"=>{"$in"=>["51af1ed61e66cfe44b00000d"]}}, "$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"=>"51af1ed61e66cfe44b00000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3052ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ed61e66cfe44b00000d"]}} 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"=>"51af1ed61e66cfe44b00000c", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed61e66cfe44b00000c", "_id"=>{"$ne"=>"51af1ed71e66cfe44b00000e"}}} (0.7839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed61e66cfe44b00000c", "_id"=>{"$ne"=>"51af1ed71e66cfe44b00000e"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed61e66cfe44b00000c", "_id"=>{"$ne"=>"51af1ed71e66cfe44b00000e"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed71e66cfe44b00000e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1ed61e66cfe44b00000c", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:51 UTC, "created_at"=>2013-06-05 11:19:51 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed61e66cfe44b00000c", "template_dependencies.en"=>{"$in"=>["51af1ed71e66cfe44b00000e"]}}, "$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"=>"51af1ed71e66cfe44b00000e"}, "$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"=>["51af1ed71e66cfe44b00000e"]}} 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"=>"51af1ed61e66cfe44b00000c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1449ms) 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"} (1.0703ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.0519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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.7038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2892ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1ed71e66cfe44b000010", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"075d18eed89571019cf7e91cfc7e998d70b3deac", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"EvASXWpMkbYfTnuqJEFW", "api_key"=>"a1db374492b34eedefcc0f6c82ba8ab13d08a99f", "updated_at"=>2013-06-05 11:19:51 UTC, "created_at"=>2013-06-05 11:19:51 UTC}] flags=[] (0.1078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7601ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1ed71e66cfe44b000011", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:19:48 UTC, "updated_at"=>2013-06-05 11:19:51 UTC, "memberships"=>[{"_id"=>"51af1ed71e66cfe44b000012", "role"=>"admin", "account_id"=>"51af1ed71e66cfe44b000010"}]}] flags=[] (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed71e66cfe44b000011", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8037ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed71e66cfe44b000011", "_id"=>{"$ne"=>"51af1ed71e66cfe44b000013"}}} (0.3462ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed71e66cfe44b000013", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1ed71e66cfe44b000011", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:51 UTC, "created_at"=>2013-06-05 11:19:51 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed71e66cfe44b000011", "template_dependencies.en"=>{"$in"=>["51af1ed71e66cfe44b000013"]}}, "$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"=>"51af1ed71e66cfe44b000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2699ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ed71e66cfe44b000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed71e66cfe44b000011", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6878ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ed71e66cfe44b000011", "_id"=>{"$ne"=>"51af1ed81e66cfe44b000014"}}} (0.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed71e66cfe44b000011", "_id"=>{"$ne"=>"51af1ed81e66cfe44b000014"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ed71e66cfe44b000011", "_id"=>{"$ne"=>"51af1ed81e66cfe44b000014"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5751ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ed81e66cfe44b000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1ed71e66cfe44b000011", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:52 UTC, "created_at"=>2013-06-05 11:19:52 UTC}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed71e66cfe44b000011", "template_dependencies.en"=>{"$in"=>["51af1ed81e66cfe44b000014"]}}, "$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"=>"51af1ed81e66cfe44b000014"}, "$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"=>["51af1ed81e66cfe44b000014"]}} 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"=>"51af1ed71e66cfe44b000011", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af1ed81e66cfe44b000015", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1ed71e66cfe44b000011", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1ed81e66cfe44b000016", "updated_at"=>2013-06-05 11:19:52 UTC, "created_at"=>2013-06-05 11:19:52 UTC, "entries_custom_fields"=>[{"_id"=>"51af1ed81e66cfe44b000016", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1ed81e66cfe44b000015"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1ed81e66cfe44b000017", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:19:52 UTC, "created_at"=>2013-06-05 11:19:52 UTC}}} flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed81e66cfe44b000018"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed81e66cfe44b000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ed81e66cfe44b000015", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5081ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed81e66cfe44b000015"]}}} (0.5178ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ed81e66cfe44b000018", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ed81e66cfe44b000015", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ed81e66cfe44b000015", "content_type_id"=>"51af1ed81e66cfe44b000015", "_slug"=>"findable-entry", "site_id"=>"51af1ed71e66cfe44b000011", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:52 UTC, "created_at"=>2013-06-05 11:19:52 UTC}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ed91e66cfe44b000019"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed81e66cfe44b000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ed81e66cfe44b000015", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2871ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed81e66cfe44b000015"]}}} (0.5989ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ed81e66cfe44b000015"]}, "_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"=>"51af1ed91e66cfe44b000019", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ed81e66cfe44b000015", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ed81e66cfe44b000015", "content_type_id"=>"51af1ed81e66cfe44b000015", "_slug"=>"hidden", "site_id"=>"51af1ed71e66cfe44b000011", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:53 UTC, "created_at"=>2013-06-05 11:19:53 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.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed71e66cfe44b000011", "parent_id"=>"51af1ed71e66cfe44b000013", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3977ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1ed71e66cfe44b000013", "site_id"=>"51af1ed71e66cfe44b000011", "_id"=>{"$ne"=>"51af1eda1e66cfe44b00001a"}}} (0.4430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1ed71e66cfe44b000013"]}} 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"=>"51af1eda1e66cfe44b00001a", "parent_ids"=>["51af1ed71e66cfe44b000013"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1ed71e66cfe44b000011", "parent_id"=>"51af1ed71e66cfe44b000013", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:54 UTC, "created_at"=>2013-06-05 11:19:54 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed71e66cfe44b000011", "template_dependencies.en"=>{"$in"=>["51af1eda1e66cfe44b00001a"]}}, "$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"=>"51af1eda1e66cfe44b00001a"}, "$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"=>["51af1eda1e66cfe44b00001a"]}} 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.7322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ed71e66cfe44b000011", "parent_id"=>"51af1ed71e66cfe44b000013", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af1ed71e66cfe44b000013", "site_id"=>"51af1ed71e66cfe44b000011", "_id"=>{"$ne"=>"51af1eda1e66cfe44b00001b"}}} (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ed71e66cfe44b000013", "site_id"=>"51af1ed71e66cfe44b000011", "_id"=>{"$ne"=>"51af1eda1e66cfe44b00001b"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ed71e66cfe44b000013", "site_id"=>"51af1ed71e66cfe44b000011", "_id"=>{"$ne"=>"51af1eda1e66cfe44b00001b"}}, "$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={"_id"=>{"$in"=>["51af1ed71e66cfe44b000013"]}} flags=[:slave_ok] 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"=>"51af1eda1e66cfe44b00001b", "parent_ids"=>["51af1ed71e66cfe44b000013"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1ed71e66cfe44b000011", "parent_id"=>"51af1ed71e66cfe44b000013", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:54 UTC, "created_at"=>2013-06-05 11:19:54 UTC}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed71e66cfe44b000011", "template_dependencies.en"=>{"$in"=>["51af1eda1e66cfe44b00001b"]}}, "$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"=>"51af1eda1e66cfe44b00001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4013ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eda1e66cfe44b00001b"]}} 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"=>"51af1ed71e66cfe44b000011", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1ed71e66cfe44b000011"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af1ed71e66cfe44b000013"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:19:55 UTC}} flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ed71e66cfe44b000011", "template_dependencies.en"=>{"$in"=>["51af1ed71e66cfe44b000013"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1edd1e66cfe44b00001c", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:19:48 UTC, "updated_at"=>2013-06-05 11:19:57 UTC, "memberships"=>[{"_id"=>"51af1edd1e66cfe44b00001d", "role"=>"admin", "account_id"=>"51af1ed71e66cfe44b000010"}]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1edd1e66cfe44b00001c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4048ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1edd1e66cfe44b00001c", "_id"=>{"$ne"=>"51af1edd1e66cfe44b00001e"}}} (0.5591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1edd1e66cfe44b00001e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1edd1e66cfe44b00001c", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:57 UTC, "created_at"=>2013-06-05 11:19:57 UTC}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1edd1e66cfe44b00001c", "template_dependencies.en"=>{"$in"=>["51af1edd1e66cfe44b00001e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1edd1e66cfe44b00001e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2739ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1edd1e66cfe44b00001e"]}} 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"=>"51af1edd1e66cfe44b00001c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5629ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1edd1e66cfe44b00001c", "_id"=>{"$ne"=>"51af1ede1e66cfe44b00001f"}}} (0.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1edd1e66cfe44b00001c", "_id"=>{"$ne"=>"51af1ede1e66cfe44b00001f"}}, "$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"=>nil, "site_id"=>"51af1edd1e66cfe44b00001c", "_id"=>{"$ne"=>"51af1ede1e66cfe44b00001f"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"51af1ede1e66cfe44b00001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1edd1e66cfe44b00001c", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:58 UTC, "created_at"=>2013-06-05 11:19:58 UTC}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1edd1e66cfe44b00001c", "template_dependencies.en"=>{"$in"=>["51af1ede1e66cfe44b00001f"]}}, "$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"=>"51af1ede1e66cfe44b00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2899ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ede1e66cfe44b00001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1edd1e66cfe44b00001c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5329ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1edd1e66cfe44b00001c", "_id"=>{"$ne"=>"51af1ede1e66cfe44b000020"}}} (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1edd1e66cfe44b00001c", "_id"=>{"$ne"=>"51af1ede1e66cfe44b000020"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1edd1e66cfe44b00001c", "_id"=>{"$ne"=>"51af1ede1e66cfe44b000020"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ede1e66cfe44b000020", "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"=>"51af1edd1e66cfe44b00001c", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:19:58 UTC, "created_at"=>2013-06-05 11:19:58 UTC}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1edd1e66cfe44b00001c", "template_dependencies.en"=>{"$in"=>["51af1ede1e66cfe44b000020"]}}, "$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"=>"51af1ede1e66cfe44b000020"}, "$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"=>["51af1ede1e66cfe44b000020"]}} 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_content_types selector={"site_id"=>"51af1edd1e66cfe44b00001c", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1edf1e66cfe44b000021", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1edd1e66cfe44b00001c", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1edf1e66cfe44b000022", "updated_at"=>2013-06-05 11:19:59 UTC, "created_at"=>2013-06-05 11:19:59 UTC, "entries_custom_fields"=>[{"_id"=>"51af1edf1e66cfe44b000022", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1edf1e66cfe44b000023"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1edf1e66cfe44b000021"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1edf1e66cfe44b000021", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4952ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1edf1e66cfe44b000021"]}}} (0.3691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1edf1e66cfe44b000023", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1edf1e66cfe44b000021", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1edf1e66cfe44b000021", "content_type_id"=>"51af1edf1e66cfe44b000021", "_slug"=>"not-findable-entry", "site_id"=>"51af1edd1e66cfe44b00001c", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:19:59 UTC, "created_at"=>2013-06-05 11:19:59 UTC}] flags=[] (0.1533ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0500ms) MOPED: 127.0.0.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) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9508ms) MOPED: 127.0.0.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.5329ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4610ms) 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"} (37.6399ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9389ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9973ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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.4301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1eeb1e66cf1a50000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"32af45d98ab9c9062d3bbe6638d3369cbf011203", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"mMXxJWzYay7xQs6WLuNV", "api_key"=>"0f0edb8841d8b19efc0312e227d469cb60c49541", "updated_at"=>2013-06-05 11:20:11 UTC, "created_at"=>2013-06-05 11:20:11 UTC}] flags=[] (0.2573ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eeb1e66cf1a50000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:20:11 UTC, "updated_at"=>2013-06-05 11:20:11 UTC, "memberships"=>[{"_id"=>"51af1eeb1e66cf1a50000003", "role"=>"admin", "account_id"=>"51af1eeb1e66cf1a50000001"}]}] flags=[] (0.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eeb1e66cf1a50000002", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eeb1e66cf1a50000002", "_id"=>{"$ne"=>"51af1eeb1e66cf1a50000004"}}} (0.3421ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eeb1e66cf1a50000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eeb1e66cf1a50000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:11 UTC, "created_at"=>2013-06-05 11:20:11 UTC}] flags=[] (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eeb1e66cf1a50000004"}, "$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"=>{"site_id"=>"51af1eeb1e66cf1a50000002", "template_dependencies.en"=>{"$in"=>["51af1eeb1e66cf1a50000004"]}}, "$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"=>["51af1eeb1e66cf1a50000004"]}} 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"=>"51af1eeb1e66cf1a50000004"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af1eeb1e66cf1a50000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eeb1e66cf1a50000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eeb1e66cf1a50000004", "_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"=>"51af1eeb1e66cf1a50000002", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eeb1e66cf1a50000002", "_id"=>{"$ne"=>"51af1eeb1e66cf1a50000006"}}} (0.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eeb1e66cf1a50000002", "_id"=>{"$ne"=>"51af1eeb1e66cf1a50000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eeb1e66cf1a50000002", "_id"=>{"$ne"=>"51af1eeb1e66cf1a50000006"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af1eeb1e66cf1a50000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eeb1e66cf1a50000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:11 UTC, "created_at"=>2013-06-05 11:20:11 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eeb1e66cf1a50000002", "template_dependencies.en"=>{"$in"=>["51af1eeb1e66cf1a50000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eeb1e66cf1a50000006"}, "$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"=>["51af1eeb1e66cf1a50000006"]}} 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"=>"51af1eeb1e66cf1a50000002", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af1eeb1e66cf1a50000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eeb1e66cf1a50000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eec1e66cf1a50000008", "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eec1e66cf1a50000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af1eeb1e66cf1a50000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1eec1e66cf1a50000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 UTC}}} flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eec1e66cf1a5000000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eeb1e66cf1a50000007"]}} 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"=>"51af1eeb1e66cf1a50000007", "_slug"=>"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::ContentEntry51af1eeb1e66cf1a50000007"]}}} (0.3581ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eec1e66cf1a5000000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eeb1e66cf1a50000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eeb1e66cf1a50000007", "content_type_id"=>"51af1eeb1e66cf1a50000007", "_slug"=>"findable-entry", "site_id"=>"51af1eeb1e66cf1a50000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 UTC}] flags=[] (0.1884ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1eeb1e66cf1a50000007", "_original_id"=>"51af1eec1e66cf1a5000000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eec1e66cf1a5000000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1eeb1e66cf1a50000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eeb1e66cf1a50000007", "_original_id"=>"51af1eec1e66cf1a5000000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eec1e66cf1a5000000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eeb1e66cf1a50000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4728ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eeb1e66cf1a50000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2401ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eeb1e66cf1a50000007"]}}} (0.4313ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eeb1e66cf1a50000007"]}, "_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"=>"51af1eec1e66cf1a5000000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eeb1e66cf1a50000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eeb1e66cf1a50000007", "content_type_id"=>"51af1eeb1e66cf1a50000007", "_slug"=>"hidden", "site_id"=>"51af1eeb1e66cf1a50000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 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::ContentEntry51af1eeb1e66cf1a50000007", "_original_id"=>"51af1eec1e66cf1a5000000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eec1e66cf1a5000000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1eeb1e66cf1a50000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eeb1e66cf1a50000007", "_original_id"=>"51af1eec1e66cf1a5000000c", "_keywords"=>["hidden"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eeb1e66cf1a50000002", "parent_id"=>"51af1eeb1e66cf1a50000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af1eeb1e66cf1a50000004", "site_id"=>"51af1eeb1e66cf1a50000002", "_id"=>{"$ne"=>"51af1eec1e66cf1a5000000e"}}} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1eeb1e66cf1a50000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4117ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eec1e66cf1a5000000e", "parent_ids"=>["51af1eeb1e66cf1a50000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eeb1e66cf1a50000002", "parent_id"=>"51af1eeb1e66cf1a50000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eeb1e66cf1a50000002", "template_dependencies.en"=>{"$in"=>["51af1eec1e66cf1a5000000e"]}}, "$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"=>"51af1eec1e66cf1a5000000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3240ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eec1e66cf1a5000000e"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eec1e66cf1a5000000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eec1e66cf1a5000000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1eeb1e66cf1a50000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eec1e66cf1a5000000e", "_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.5610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eeb1e66cf1a50000002", "parent_id"=>"51af1eeb1e66cf1a50000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4761ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1eeb1e66cf1a50000004", "site_id"=>"51af1eeb1e66cf1a50000002", "_id"=>{"$ne"=>"51af1eec1e66cf1a50000010"}}} (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eeb1e66cf1a50000004", "site_id"=>"51af1eeb1e66cf1a50000002", "_id"=>{"$ne"=>"51af1eec1e66cf1a50000010"}}, "$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"=>"51af1eeb1e66cf1a50000004", "site_id"=>"51af1eeb1e66cf1a50000002", "_id"=>{"$ne"=>"51af1eec1e66cf1a50000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1eeb1e66cf1a50000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eec1e66cf1a50000010", "parent_ids"=>["51af1eeb1e66cf1a50000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eeb1e66cf1a50000002", "parent_id"=>"51af1eeb1e66cf1a50000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eeb1e66cf1a50000002", "template_dependencies.en"=>{"$in"=>["51af1eec1e66cf1a50000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eec1e66cf1a50000010"}, "$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"=>["51af1eec1e66cf1a50000010"]}} 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"=>"51af1eec1e66cf1a50000010"}, "$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"=>"51af1eec1e66cf1a50000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1eeb1e66cf1a50000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eec1e66cf1a50000010", "_keywords"=>["en:search"]}] flags=[] (0.1292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eeb1e66cf1a50000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1eeb1e66cf1a50000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af1eeb1e66cf1a50000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:20:12 UTC}} flags=[] (0.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eeb1e66cf1a50000002", "template_dependencies.en"=>{"$in"=>["51af1eeb1e66cf1a50000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eeb1e66cf1a50000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4792ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1eeb1e66cf1a50000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eeb1e66cf1a50000002"}}} 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.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.3152ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eec1e66cf1a50000012", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:20:11 UTC, "updated_at"=>2013-06-05 11:20:12 UTC, "memberships"=>[{"_id"=>"51af1eec1e66cf1a50000013", "role"=>"admin", "account_id"=>"51af1eeb1e66cf1a50000001"}]}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eec1e66cf1a50000012", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eec1e66cf1a50000012", "_id"=>{"$ne"=>"51af1eec1e66cf1a50000014"}}} (0.5372ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eec1e66cf1a50000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eec1e66cf1a50000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eec1e66cf1a50000012", "template_dependencies.en"=>{"$in"=>["51af1eec1e66cf1a50000014"]}}, "$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"=>"51af1eec1e66cf1a50000014"}, "$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"=>["51af1eec1e66cf1a50000014"]}} 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"=>"51af1eec1e66cf1a50000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eec1e66cf1a50000015", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eec1e66cf1a50000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eec1e66cf1a50000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eec1e66cf1a50000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4780ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eec1e66cf1a50000012", "_id"=>{"$ne"=>"51af1eec1e66cf1a50000016"}}} (0.4811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eec1e66cf1a50000012", "_id"=>{"$ne"=>"51af1eec1e66cf1a50000016"}}, "$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"=>nil, "site_id"=>"51af1eec1e66cf1a50000012", "_id"=>{"$ne"=>"51af1eec1e66cf1a50000016"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eec1e66cf1a50000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eec1e66cf1a50000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eec1e66cf1a50000012", "template_dependencies.en"=>{"$in"=>["51af1eec1e66cf1a50000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eec1e66cf1a50000016"}, "$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"=>["51af1eec1e66cf1a50000016"]}} 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"=>"51af1eec1e66cf1a50000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5708ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eec1e66cf1a50000012", "_id"=>{"$ne"=>"51af1eec1e66cf1a50000017"}}} (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eec1e66cf1a50000012", "_id"=>{"$ne"=>"51af1eec1e66cf1a50000017"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eec1e66cf1a50000012", "_id"=>{"$ne"=>"51af1eec1e66cf1a50000017"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2029ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eec1e66cf1a50000017", "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"=>"51af1eec1e66cf1a50000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eec1e66cf1a50000012", "template_dependencies.en"=>{"$in"=>["51af1eec1e66cf1a50000017"]}}, "$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"=>"51af1eec1e66cf1a50000017"}, "$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"=>["51af1eec1e66cf1a50000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eec1e66cf1a50000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3703ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eec1e66cf1a50000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af1eec1e66cf1a50000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eec1e66cf1a50000017", "_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.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af1eec1e66cf1a50000012", "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"=>"51af1eec1e66cf1a50000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eec1e66cf1a50000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eec1e66cf1a5000001a", "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eec1e66cf1a5000001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eec1e66cf1a5000001b"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eec1e66cf1a50000019"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eec1e66cf1a50000019", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5069ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eec1e66cf1a50000019"]}}} (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eec1e66cf1a5000001b", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eec1e66cf1a50000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eec1e66cf1a50000019", "content_type_id"=>"51af1eec1e66cf1a50000019", "_slug"=>"not-findable-entry", "site_id"=>"51af1eec1e66cf1a50000012", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 UTC}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1eec1e66cf1a50000019", "_original_id"=>"51af1eec1e66cf1a5000001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eec1e66cf1a5000001c", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af1eec1e66cf1a50000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eec1e66cf1a50000019", "_original_id"=>"51af1eec1e66cf1a5000001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1271ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:20:12 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eeb1e66cf1a50000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5097ms) Rendered text template (0.0ms) Completed 200 OK in 85ms (Views: 80.1ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:20:12 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eeb1e66cf1a50000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$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=active_search_mongoid_models selector={"_stored.site_id"=>"51af1eeb1e66cf1a50000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4079ms) Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:20:12 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eeb1e66cf1a50000002", "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.7339ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:20:12 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eeb1e66cf1a50000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5531ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6571ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4649ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4363ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4642ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4220ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:20:12 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5510ms) [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2899ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_accounts", :query=>{}} (0.3121ms) Redirected to http://test.example.com/locomotive/installation Filter chain halted as :require_site rendered or redirected Completed 302 Found in 3ms Started GET "/locomotive/installation" for 127.0.0.1 at 2013-06-05 13:20:12 +0200 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1eec1e66cf8b74000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8459bb75c08b3ef8094a7837d1c936e19643f372", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"CVMFT97NqyNV1HMw3q1u", "api_key"=>"95e8a306e0474ba9595562b19aeeef32eb88352b", "updated_at"=>2013-06-05 11:20:12 UTC, "created_at"=>2013-06-05 11:20:12 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.8438ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eec1e66cf8b74000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:20:12 UTC, "updated_at"=>2013-06-05 11:20:12 UTC, "memberships"=>[{"_id"=>"51af1eec1e66cf8b74000003", "role"=>"admin", "account_id"=>"51af1eec1e66cf8b74000001"}]}] flags=[] (0.2608ms) Processing by Locomotive::InstallationController#show as HTML Parameters: {"step"=>1} MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5300ms) Rendered /usr/local/lib/ruby/gems/1.9.1/gems/locomotive_cms-2.1.0/app/views/locomotive/installation/step_1.html.haml within /locomotive/layouts/not_logged_in (26.2ms) Filter chain halted as :is_step_already_done? rendered or redirected Completed 200 OK in 57ms (Views: 54.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.6390ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3208ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3533ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eec1e66cf8b74000002", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eec1e66cf8b74000002", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000004"}}} (0.4151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eed1e66cf8b74000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eec1e66cf8b74000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eed1e66cf8b74000004"}, "$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"=>"51af1eec1e66cf8b74000002", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b74000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2742ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eed1e66cf8b74000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b74000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6113ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b74000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eec1e66cf8b74000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b74000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eec1e66cf8b74000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4187ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eec1e66cf8b74000002", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000006"}}} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eec1e66cf8b74000002", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000006"}}, "$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"=>nil, "site_id"=>"51af1eec1e66cf8b74000002", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000006"}}, "$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"=>"51af1eed1e66cf8b74000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eec1e66cf8b74000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eec1e66cf8b74000002", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b74000006"]}}, "$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"=>"51af1eed1e66cf8b74000006"}, "$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"=>["51af1eed1e66cf8b74000006"]}} 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_content_types selector={"site_id"=>"51af1eec1e66cf8b74000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1eed1e66cf8b74000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eec1e66cf8b74000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eed1e66cf8b74000008", "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eed1e66cf8b74000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1eed1e66cf8b74000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1eed1e66cf8b74000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eed1e66cf8b7400000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eed1e66cf8b74000007", "_slug"=>"findable-entry"} 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::ContentEntry51af1eed1e66cf8b74000007"]}}} (0.3529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eed1e66cf8b7400000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eed1e66cf8b74000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b74000007", "content_type_id"=>"51af1eed1e66cf8b74000007", "_slug"=>"findable-entry", "site_id"=>"51af1eec1e66cf8b74000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 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::ContentEntry51af1eed1e66cf8b74000007", "_original_id"=>"51af1eed1e66cf8b7400000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3083ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b7400000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1eec1e66cf8b74000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b74000007", "_original_id"=>"51af1eed1e66cf8b7400000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eed1e66cf8b7400000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eed1e66cf8b74000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2208ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000007"]}}} (0.2649ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.3982ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eed1e66cf8b7400000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eed1e66cf8b74000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b74000007", "content_type_id"=>"51af1eed1e66cf8b74000007", "_slug"=>"hidden", "site_id"=>"51af1eec1e66cf8b74000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 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::ContentEntry51af1eed1e66cf8b74000007", "_original_id"=>"51af1eed1e66cf8b7400000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3147ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b7400000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1eec1e66cf8b74000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b74000007", "_original_id"=>"51af1eed1e66cf8b7400000c", "_keywords"=>["hidden"]}] flags=[] (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.5269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eec1e66cf8b74000002", "parent_id"=>"51af1eed1e66cf8b74000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1eed1e66cf8b74000004", "site_id"=>"51af1eec1e66cf8b74000002", "_id"=>{"$ne"=>"51af1eed1e66cf8b7400000e"}}} (0.4928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1eed1e66cf8b74000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eed1e66cf8b7400000e", "parent_ids"=>["51af1eed1e66cf8b74000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eec1e66cf8b74000002", "parent_id"=>"51af1eed1e66cf8b74000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eec1e66cf8b74000002", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b7400000e"]}}, "$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"=>"51af1eed1e66cf8b7400000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eed1e66cf8b7400000e"]}} 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"=>"51af1eed1e66cf8b7400000e"}, "$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"=>"51af1eed1e66cf8b7400000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1eec1e66cf8b74000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b7400000e", "_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.5689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eec1e66cf8b74000002", "parent_id"=>"51af1eed1e66cf8b74000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3078ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1eed1e66cf8b74000004", "site_id"=>"51af1eec1e66cf8b74000002", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000010"}}} (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eed1e66cf8b74000004", "site_id"=>"51af1eec1e66cf8b74000002", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000010"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3977ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eed1e66cf8b74000004", "site_id"=>"51af1eec1e66cf8b74000002", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1eed1e66cf8b74000004"]}} 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"=>"51af1eed1e66cf8b74000010", "parent_ids"=>["51af1eed1e66cf8b74000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eec1e66cf8b74000002", "parent_id"=>"51af1eed1e66cf8b74000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eec1e66cf8b74000002", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b74000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eed1e66cf8b74000010"}, "$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"=>["51af1eed1e66cf8b74000010"]}} 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"=>"51af1eed1e66cf8b74000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b74000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1eec1e66cf8b74000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b74000010", "_keywords"=>["en:search"]}] flags=[] (0.1051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eec1e66cf8b74000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1eec1e66cf8b74000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8872ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4659ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8140ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3657ms) MOPED: 127.0.0.1:27017 QUERY 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"=>"51af1eed1e66cf8b74000012", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"65ddddaef8ee9aaf445e967e40943965e5206720", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"1Ur8RqBExT2HjuGAqQ9m", "api_key"=>"29a617ec8a59d6ee3bc78c0490a8509959d2b3ec", "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4318ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eed1e66cf8b74000013", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:20:12 UTC, "updated_at"=>2013-06-05 11:20:13 UTC, "memberships"=>[{"_id"=>"51af1eed1e66cf8b74000014", "role"=>"admin", "account_id"=>"51af1eed1e66cf8b74000012"}]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eed1e66cf8b74000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eed1e66cf8b74000013", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000015"}}} (0.3061ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eed1e66cf8b74000015", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eed1e66cf8b74000013", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000013", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b74000015"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eed1e66cf8b74000015"}, "$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"=>["51af1eed1e66cf8b74000015"]}} 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"=>"51af1eed1e66cf8b74000015"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b74000016", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eed1e66cf8b74000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b74000015", "_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"=>"51af1eed1e66cf8b74000013", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eed1e66cf8b74000013", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000017"}}} (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eed1e66cf8b74000013", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000017"}}, "$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"=>nil, "site_id"=>"51af1eed1e66cf8b74000013", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000017"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eed1e66cf8b74000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eed1e66cf8b74000013", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000013", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b74000017"]}}, "$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"=>"51af1eed1e66cf8b74000017"}, "$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"=>["51af1eed1e66cf8b74000017"]}} 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"=>"51af1eed1e66cf8b74000013", "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"=>"51af1eed1e66cf8b74000018", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eed1e66cf8b74000013", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eed1e66cf8b74000019", "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eed1e66cf8b74000019", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1eed1e66cf8b74000018"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1eed1e66cf8b7400001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}}} flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eed1e66cf8b7400001b"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eed1e66cf8b74000018", "_slug"=>"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::ContentEntry51af1eed1e66cf8b74000018"]}}} (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eed1e66cf8b7400001b", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eed1e66cf8b74000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b74000018", "content_type_id"=>"51af1eed1e66cf8b74000018", "_slug"=>"findable-entry", "site_id"=>"51af1eed1e66cf8b74000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 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::ContentEntry51af1eed1e66cf8b74000018", "_original_id"=>"51af1eed1e66cf8b7400001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b7400001c", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1eed1e66cf8b74000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b74000018", "_original_id"=>"51af1eed1e66cf8b7400001b", "_keywords"=>["findable", "entry"]}] flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eed1e66cf8b7400001d"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eed1e66cf8b74000018", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2906ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000018"]}}} (0.3619ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000018"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eed1e66cf8b7400001d", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eed1e66cf8b74000018", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b74000018", "content_type_id"=>"51af1eed1e66cf8b74000018", "_slug"=>"hidden", "site_id"=>"51af1eed1e66cf8b74000013", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 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::ContentEntry51af1eed1e66cf8b74000018", "_original_id"=>"51af1eed1e66cf8b7400001d"}, "$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"=>"51af1eed1e66cf8b7400001e", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1eed1e66cf8b74000013", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b74000018", "_original_id"=>"51af1eed1e66cf8b7400001d", "_keywords"=>["hidden"]}] flags=[] (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.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eed1e66cf8b74000013", "parent_id"=>"51af1eed1e66cf8b74000015", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3903ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1eed1e66cf8b74000015", "site_id"=>"51af1eed1e66cf8b74000013", "_id"=>{"$ne"=>"51af1eed1e66cf8b7400001f"}}} (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1eed1e66cf8b74000015"]}} 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"=>"51af1eed1e66cf8b7400001f", "parent_ids"=>["51af1eed1e66cf8b74000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eed1e66cf8b74000013", "parent_id"=>"51af1eed1e66cf8b74000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000013", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b7400001f"]}}, "$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"=>"51af1eed1e66cf8b7400001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eed1e66cf8b7400001f"]}} 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"=>"51af1eed1e66cf8b7400001f"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b74000020", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af1eed1e66cf8b74000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b7400001f", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eed1e66cf8b74000013", "parent_id"=>"51af1eed1e66cf8b74000015", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af1eed1e66cf8b74000015", "site_id"=>"51af1eed1e66cf8b74000013", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000021"}}} (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eed1e66cf8b74000015", "site_id"=>"51af1eed1e66cf8b74000013", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000021"}}, "$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"=>"51af1eed1e66cf8b74000015", "site_id"=>"51af1eed1e66cf8b74000013", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000021"}}, "$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={"_id"=>{"$in"=>["51af1eed1e66cf8b74000015"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eed1e66cf8b74000021", "parent_ids"=>["51af1eed1e66cf8b74000015"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1eed1e66cf8b74000013", "parent_id"=>"51af1eed1e66cf8b74000015", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000013", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b74000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5157ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eed1e66cf8b74000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2420ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eed1e66cf8b74000021"]}} 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"=>"51af1eed1e66cf8b74000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b74000022", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af1eed1e66cf8b74000013"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b74000021", "_keywords"=>["en:search"]}] flags=[] (0.1121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000013", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1eed1e66cf8b74000013"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af1eed1e66cf8b74000015"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:20:13 UTC}} flags=[] (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000013", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b74000015"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b74000015"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1eed1e66cf8b74000016"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eed1e66cf8b74000013"}}} flags=[] (0.1097ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1eed1e66cf8b74000023", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:20:12 UTC, "updated_at"=>2013-06-05 11:20:13 UTC, "memberships"=>[{"_id"=>"51af1eed1e66cf8b74000024", "role"=>"admin", "account_id"=>"51af1eed1e66cf8b74000012"}]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eed1e66cf8b74000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3731ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eed1e66cf8b74000023", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000025"}}} (0.5040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eed1e66cf8b74000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1eed1e66cf8b74000023", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000023", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b74000025"]}}, "$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"=>"51af1eed1e66cf8b74000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2291ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eed1e66cf8b74000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b74000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b74000026", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af1eed1e66cf8b74000023"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b74000025", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1eed1e66cf8b74000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eed1e66cf8b74000023", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000027"}}} (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eed1e66cf8b74000023", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000027"}}, "$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"=>nil, "site_id"=>"51af1eed1e66cf8b74000023", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000027"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eed1e66cf8b74000027", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1eed1e66cf8b74000023", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000023", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b74000027"]}}, "$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"=>"51af1eed1e66cf8b74000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2670ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eed1e66cf8b74000027"]}} 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"=>"51af1eed1e66cf8b74000023", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3340ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1eed1e66cf8b74000023", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000028"}}} (0.5257ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eed1e66cf8b74000023", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000028"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1eed1e66cf8b74000023", "_id"=>{"$ne"=>"51af1eed1e66cf8b74000028"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.1748ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1eed1e66cf8b74000028", "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"=>"51af1eed1e66cf8b74000023", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000023", "template_dependencies.en"=>{"$in"=>["51af1eed1e66cf8b74000028"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1eed1e66cf8b74000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2320ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1eed1e66cf8b74000028"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b74000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b74000029", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af1eed1e66cf8b74000023"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af1eed1e66cf8b74000028", "_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.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af1eed1e66cf8b74000023", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3998ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1eed1e66cf8b7400002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1eed1e66cf8b74000023", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1eed1e66cf8b7400002b", "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC, "entries_custom_fields"=>[{"_id"=>"51af1eed1e66cf8b7400002b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eed1e66cf8b7400002c"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b7400002a"]}} 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"=>"51af1eed1e66cf8b7400002a", "_slug"=>"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::ContentEntry51af1eed1e66cf8b7400002a"]}}} (0.3791ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1eed1e66cf8b7400002c", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1eed1e66cf8b7400002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b7400002a", "content_type_id"=>"51af1eed1e66cf8b7400002a", "_slug"=>"not-findable-entry", "site_id"=>"51af1eed1e66cf8b74000023", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:20:13 UTC, "created_at"=>2013-06-05 11:20:13 UTC}] flags=[] (0.1502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b7400002a", "_original_id"=>"51af1eed1e66cf8b7400002c"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af1eed1e66cf8b7400002d", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af1eed1e66cf8b74000023", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b7400002a", "_original_id"=>"51af1eed1e66cf8b7400002c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1eed1e66cf8b7400001b"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000018"]}} 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_content_entries selector={"_id"=>{"$ne"=>"51af1eed1e66cf8b7400001d"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000018"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000018"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1eed1e66cf8b74000018"} update={"$set"=>{"updated_at"=>2013-06-05 11:20:13 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0882ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eed1e66cf8b74000018"} 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.1221ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:20:13 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000013", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 80ms (Views: 75.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:20:13 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000013", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af1eed1e66cf8b74000013", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3526ms) Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1eed1e66cf8b74000018"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1eed1e66cf8b74000018", "updated_at"=>{"$lt"=>2013-06-05 11:20:13 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af1eed1e66cf8b74000018"]}} 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_sites selector={"$query"=>{"_id"=>"51af1eed1e66cf8b74000013"}, "$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"=>"51af1eed1e66cf8b74000018"}, "$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_content_entries selector={"_id"=>"51af1eed1e66cf8b7400001b"} update={"$set"=>{"updated_at"=>2013-06-05 11:20:13 UTC}} flags=[] (0.1030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b74000018", "_original_id"=>"51af1eed1e66cf8b7400001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af1eed1e66cf8b7400001c"} update={"$set"=>{"_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af1eed1e66cf8b74000013", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.0989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1eed1e66cf8b74000013"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af1eed1e66cf8b74000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af1eed1e66cf8b7400001d"} update={"$set"=>{"updated_at"=>2013-06-05 11:20:13 UTC}} flags=[] (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af1eed1e66cf8b74000018", "_original_id"=>"51af1eed1e66cf8b7400001d"}, "$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=active_search_mongoid_models selector={"_id"=>"51af1eed1e66cf8b7400001e"} update={"$set"=>{"_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af1eed1e66cf8b74000013", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1018ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:20:13 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:20:13 +0200 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.4957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000013", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4880ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:20:13 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1eed1e66cf8b74000013", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af1eed1e66cf8b74000013", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3371ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7348ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.7231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.7238ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4270ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4191ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4382ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4981ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_accounts selector={"email"=>"admin@locomotiveapp.org"} 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_accounts documents=[{"_id"=>"51af1ff11e66cfde25000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c6e7b4c4b72150ab14dc43fbf9e36b899e2ecc19", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"UTVXpatPfmVysqrWJqmp", "api_key"=>"c0ac25b190522d621b0d97b6ba907c5cfc5886c5", "updated_at"=>2013-06-05 11:24:33 UTC, "created_at"=>2013-06-05 11:24:33 UTC}] flags=[] (0.1462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1ff11e66cfde25000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:24:32 UTC, "updated_at"=>2013-06-05 11:24:33 UTC, "memberships"=>[{"_id"=>"51af1ff11e66cfde25000003", "role"=>"admin", "account_id"=>"51af1ff11e66cfde25000001"}]}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ff11e66cfde25000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7679ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ff11e66cfde25000002", "_id"=>{"$ne"=>"51af1ff21e66cfde25000004"}}} (0.3269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ff21e66cfde25000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1ff11e66cfde25000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:34 UTC, "created_at"=>2013-06-05 11:24:34 UTC}] flags=[] (0.2222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ff21e66cfde25000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4637ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "template_dependencies.en"=>{"$in"=>["51af1ff21e66cfde25000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3178ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ff21e66cfde25000004"]}} 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"=>"51af1ff11e66cfde25000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4621ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ff11e66cfde25000002", "_id"=>{"$ne"=>"51af1ff21e66cfde25000005"}}} (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ff11e66cfde25000002", "_id"=>{"$ne"=>"51af1ff21e66cfde25000005"}}, "$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"=>nil, "site_id"=>"51af1ff11e66cfde25000002", "_id"=>{"$ne"=>"51af1ff21e66cfde25000005"}}, "$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"=>"51af1ff21e66cfde25000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1ff11e66cfde25000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:34 UTC, "created_at"=>2013-06-05 11:24:34 UTC}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "template_dependencies.en"=>{"$in"=>["51af1ff21e66cfde25000005"]}}, "$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"=>"51af1ff21e66cfde25000005"}, "$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"=>["51af1ff21e66cfde25000005"]}} 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"=>"51af1ff11e66cfde25000002", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af1ff21e66cfde25000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1ff11e66cfde25000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1ff21e66cfde25000007", "updated_at"=>2013-06-05 11:24:34 UTC, "created_at"=>2013-06-05 11:24:34 UTC, "entries_custom_fields"=>[{"_id"=>"51af1ff21e66cfde25000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af1ff21e66cfde25000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1ff21e66cfde25000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:24:34 UTC, "created_at"=>2013-06-05 11:24:34 UTC}}} flags=[] (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ff21e66cfde25000009"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff21e66cfde25000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ff21e66cfde25000006", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff21e66cfde25000006"]}}} (0.3450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ff21e66cfde25000009", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ff21e66cfde25000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ff21e66cfde25000006", "content_type_id"=>"51af1ff21e66cfde25000006", "_slug"=>"findable-entry", "site_id"=>"51af1ff11e66cfde25000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:24:34 UTC, "created_at"=>2013-06-05 11:24:34 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ff21e66cfde2500000a"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff21e66cfde25000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ff21e66cfde25000006", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4082ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff21e66cfde25000006"]}}} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff21e66cfde25000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5882ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ff21e66cfde2500000a", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ff21e66cfde25000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ff21e66cfde25000006", "content_type_id"=>"51af1ff21e66cfde25000006", "_slug"=>"hidden", "site_id"=>"51af1ff11e66cfde25000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:24:34 UTC, "created_at"=>2013-06-05 11:24:34 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.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ff11e66cfde25000002", "parent_id"=>"51af1ff21e66cfde25000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4749ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1ff21e66cfde25000004", "site_id"=>"51af1ff11e66cfde25000002", "_id"=>{"$ne"=>"51af1ff31e66cfde2500000b"}}} (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1ff21e66cfde25000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ff31e66cfde2500000b", "parent_ids"=>["51af1ff21e66cfde25000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1ff11e66cfde25000002", "parent_id"=>"51af1ff21e66cfde25000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:35 UTC, "created_at"=>2013-06-05 11:24:35 UTC}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "template_dependencies.en"=>{"$in"=>["51af1ff31e66cfde2500000b"]}}, "$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"=>"51af1ff31e66cfde2500000b"}, "$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"=>["51af1ff31e66cfde2500000b"]}} 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.7410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ff11e66cfde25000002", "parent_id"=>"51af1ff21e66cfde25000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4411ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1ff21e66cfde25000004", "site_id"=>"51af1ff11e66cfde25000002", "_id"=>{"$ne"=>"51af1ff31e66cfde2500000c"}}} (0.4733ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ff21e66cfde25000004", "site_id"=>"51af1ff11e66cfde25000002", "_id"=>{"$ne"=>"51af1ff31e66cfde2500000c"}}, "$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"=>"51af1ff21e66cfde25000004", "site_id"=>"51af1ff11e66cfde25000002", "_id"=>{"$ne"=>"51af1ff31e66cfde2500000c"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1ff21e66cfde25000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ff31e66cfde2500000c", "parent_ids"=>["51af1ff21e66cfde25000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1ff11e66cfde25000002", "parent_id"=>"51af1ff21e66cfde25000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:35 UTC, "created_at"=>2013-06-05 11:24:35 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "template_dependencies.en"=>{"$in"=>["51af1ff31e66cfde2500000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ff31e66cfde2500000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6671ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ff31e66cfde2500000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1ff11e66cfde25000002"}, "$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"=>"51af1ff21e66cfde25000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:24:36 UTC}} flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "template_dependencies.en"=>{"$in"=>["51af1ff21e66cfde25000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1ff41e66cfde2500000d", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:24:32 UTC, "updated_at"=>2013-06-05 11:24:36 UTC, "memberships"=>[{"_id"=>"51af1ff41e66cfde2500000e", "role"=>"admin", "account_id"=>"51af1ff11e66cfde25000001"}]}] flags=[] (0.1478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ff41e66cfde2500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3791ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ff41e66cfde2500000d", "_id"=>{"$ne"=>"51af1ff41e66cfde2500000f"}}} (0.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ff41e66cfde2500000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1ff41e66cfde2500000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:36 UTC, "created_at"=>2013-06-05 11:24:36 UTC}] flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff41e66cfde2500000d", "template_dependencies.en"=>{"$in"=>["51af1ff41e66cfde2500000f"]}}, "$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"=>"51af1ff41e66cfde2500000f"}, "$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"=>["51af1ff41e66cfde2500000f"]}} 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"=>"51af1ff41e66cfde2500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6652ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ff41e66cfde2500000d", "_id"=>{"$ne"=>"51af1ff41e66cfde25000010"}}} (0.6189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ff41e66cfde2500000d", "_id"=>{"$ne"=>"51af1ff41e66cfde25000010"}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ff41e66cfde2500000d", "_id"=>{"$ne"=>"51af1ff41e66cfde25000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6108ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ff41e66cfde25000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1ff41e66cfde2500000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:36 UTC, "created_at"=>2013-06-05 11:24:36 UTC}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff41e66cfde2500000d", "template_dependencies.en"=>{"$in"=>["51af1ff41e66cfde25000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ff41e66cfde25000010"}, "$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"=>["51af1ff41e66cfde25000010"]}} 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"=>"51af1ff41e66cfde2500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ff41e66cfde2500000d", "_id"=>{"$ne"=>"51af1ff41e66cfde25000011"}}} (0.5791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ff41e66cfde2500000d", "_id"=>{"$ne"=>"51af1ff41e66cfde25000011"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ff41e66cfde2500000d", "_id"=>{"$ne"=>"51af1ff41e66cfde25000011"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ff41e66cfde25000011", "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"=>"51af1ff41e66cfde2500000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:36 UTC, "created_at"=>2013-06-05 11:24:36 UTC}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff41e66cfde2500000d", "template_dependencies.en"=>{"$in"=>["51af1ff41e66cfde25000011"]}}, "$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"=>"51af1ff41e66cfde25000011"}, "$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"=>["51af1ff41e66cfde25000011"]}} 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"=>"51af1ff41e66cfde2500000d", "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"=>"51af1ff51e66cfde25000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1ff41e66cfde2500000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1ff51e66cfde25000013", "updated_at"=>2013-06-05 11:24:37 UTC, "created_at"=>2013-06-05 11:24:37 UTC, "entries_custom_fields"=>[{"_id"=>"51af1ff51e66cfde25000013", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ff51e66cfde25000014"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff51e66cfde25000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ff51e66cfde25000012", "_slug"=>"not-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::ContentEntry51af1ff51e66cfde25000012"]}}} (0.3457ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ff51e66cfde25000014", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ff51e66cfde25000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ff51e66cfde25000012", "content_type_id"=>"51af1ff51e66cfde25000012", "_slug"=>"not-findable-entry", "site_id"=>"51af1ff41e66cfde2500000d", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:24:37 UTC, "created_at"=>2013-06-05 11:24:37 UTC}] flags=[] (0.1543ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:24:37 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4921ms) Rendered text template (0.0ms) Completed 200 OK in 79ms (Views: 74.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:24:37 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6800ms) Rendered text template (0.0ms) Completed 200 OK in 197ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:24:37 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "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.5620ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:24:37 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5887ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5131ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:24:37 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff11e66cfde25000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) Rendered text template (0.0ms) Completed 200 OK in 242ms (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.6990ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2040ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3490ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8459ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=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.3040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af1ff61e66cfde25000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8c6d6edbde0c8415f07ed2d63fa359ebaa460244", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"zxpnXutMnctG6uvcUV3f", "api_key"=>"883b71a316c699631dc695ebbc56c5f3a4996473", "updated_at"=>2013-06-05 11:24:38 UTC, "created_at"=>2013-06-05 11:24:38 UTC}] flags=[] (0.1111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1ff61e66cfde25000016", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:24:32 UTC, "updated_at"=>2013-06-05 11:24:38 UTC, "memberships"=>[{"_id"=>"51af1ff61e66cfde25000017", "role"=>"admin", "account_id"=>"51af1ff61e66cfde25000015"}]}] flags=[] (0.1209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ff61e66cfde25000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6492ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ff61e66cfde25000016", "_id"=>{"$ne"=>"51af1ff61e66cfde25000018"}}} (0.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ff61e66cfde25000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1ff61e66cfde25000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:38 UTC, "created_at"=>2013-06-05 11:24:38 UTC}] flags=[] (0.1757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff61e66cfde25000016", "template_dependencies.en"=>{"$in"=>["51af1ff61e66cfde25000018"]}}, "$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"=>"51af1ff61e66cfde25000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3009ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ff61e66cfde25000018"]}} 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"=>"51af1ff61e66cfde25000016", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ff61e66cfde25000016", "_id"=>{"$ne"=>"51af1ff61e66cfde25000019"}}} (0.4690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ff61e66cfde25000016", "_id"=>{"$ne"=>"51af1ff61e66cfde25000019"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>nil, "site_id"=>"51af1ff61e66cfde25000016", "_id"=>{"$ne"=>"51af1ff61e66cfde25000019"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7601ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ff61e66cfde25000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1ff61e66cfde25000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:38 UTC, "created_at"=>2013-06-05 11:24:38 UTC}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff61e66cfde25000016", "template_dependencies.en"=>{"$in"=>["51af1ff61e66cfde25000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3047ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ff61e66cfde25000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ff61e66cfde25000019"]}} 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"=>"51af1ff61e66cfde25000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1ff61e66cfde2500001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1ff61e66cfde25000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1ff61e66cfde2500001b", "updated_at"=>2013-06-05 11:24:38 UTC, "created_at"=>2013-06-05 11:24:38 UTC, "entries_custom_fields"=>[{"_id"=>"51af1ff61e66cfde2500001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1ff61e66cfde2500001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af1ff61e66cfde2500001c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:24:38 UTC, "created_at"=>2013-06-05 11:24:38 UTC}}} flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ff61e66cfde2500001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff61e66cfde2500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ff61e66cfde2500001a", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5329ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff61e66cfde2500001a"]}}} (0.5078ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ff61e66cfde2500001d", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ff61e66cfde2500001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ff61e66cfde2500001a", "content_type_id"=>"51af1ff61e66cfde2500001a", "_slug"=>"findable-entry", "site_id"=>"51af1ff61e66cfde25000016", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:24:38 UTC, "created_at"=>2013-06-05 11:24:38 UTC}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ff71e66cfde2500001e"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff61e66cfde2500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ff61e66cfde2500001a", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2713ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff61e66cfde2500001a"]}}} (0.2863ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff61e66cfde2500001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ff71e66cfde2500001e", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ff61e66cfde2500001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ff61e66cfde2500001a", "content_type_id"=>"51af1ff61e66cfde2500001a", "_slug"=>"hidden", "site_id"=>"51af1ff61e66cfde25000016", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:24:39 UTC, "created_at"=>2013-06-05 11:24:39 UTC}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ff61e66cfde25000016", "parent_id"=>"51af1ff61e66cfde25000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4051ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af1ff61e66cfde25000018", "site_id"=>"51af1ff61e66cfde25000016", "_id"=>{"$ne"=>"51af1ff71e66cfde2500001f"}}} (0.6452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1ff61e66cfde25000018"]}} flags=[:slave_ok] 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"=>"51af1ff71e66cfde2500001f", "parent_ids"=>["51af1ff61e66cfde25000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1ff61e66cfde25000016", "parent_id"=>"51af1ff61e66cfde25000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:39 UTC, "created_at"=>2013-06-05 11:24:39 UTC}] flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff61e66cfde25000016", "template_dependencies.en"=>{"$in"=>["51af1ff71e66cfde2500001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ff71e66cfde2500001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5808ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ff71e66cfde2500001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ff61e66cfde25000016", "parent_id"=>"51af1ff61e66cfde25000018", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af1ff61e66cfde25000018", "site_id"=>"51af1ff61e66cfde25000016", "_id"=>{"$ne"=>"51af1ff81e66cfde25000020"}}} (0.4432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ff61e66cfde25000018", "site_id"=>"51af1ff61e66cfde25000016", "_id"=>{"$ne"=>"51af1ff81e66cfde25000020"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ff61e66cfde25000018", "site_id"=>"51af1ff61e66cfde25000016", "_id"=>{"$ne"=>"51af1ff81e66cfde25000020"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af1ff61e66cfde25000018"]}} 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"=>"51af1ff81e66cfde25000020", "parent_ids"=>["51af1ff61e66cfde25000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af1ff61e66cfde25000016", "parent_id"=>"51af1ff61e66cfde25000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:40 UTC, "created_at"=>2013-06-05 11:24:40 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff61e66cfde25000016", "template_dependencies.en"=>{"$in"=>["51af1ff81e66cfde25000020"]}}, "$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"=>"51af1ff81e66cfde25000020"}, "$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"=>["51af1ff81e66cfde25000020"]}} 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"=>"51af1ff61e66cfde25000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1ff61e66cfde25000016"}, "$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"=>"51af1ff61e66cfde25000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:24:40 UTC}} flags=[] (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff61e66cfde25000016", "template_dependencies.en"=>{"$in"=>["51af1ff61e66cfde25000018"]}}, "$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_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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3018ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af1ff81e66cfde25000021", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:24:32 UTC, "updated_at"=>2013-06-05 11:24:40 UTC, "memberships"=>[{"_id"=>"51af1ff81e66cfde25000022", "role"=>"admin", "account_id"=>"51af1ff61e66cfde25000015"}]}] flags=[] (0.1543ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af1ff81e66cfde25000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ff81e66cfde25000021", "_id"=>{"$ne"=>"51af1ff81e66cfde25000023"}}} (0.5231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ff81e66cfde25000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af1ff81e66cfde25000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:40 UTC, "created_at"=>2013-06-05 11:24:40 UTC}] flags=[] (0.2971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff81e66cfde25000021", "template_dependencies.en"=>{"$in"=>["51af1ff81e66cfde25000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ff81e66cfde25000023"}, "$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"=>["51af1ff81e66cfde25000023"]}} 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"=>"51af1ff81e66cfde25000021", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ff81e66cfde25000021", "_id"=>{"$ne"=>"51af1ff91e66cfde25000024"}}} (0.4849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ff81e66cfde25000021", "_id"=>{"$ne"=>"51af1ff91e66cfde25000024"}}, "$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"=>nil, "site_id"=>"51af1ff81e66cfde25000021", "_id"=>{"$ne"=>"51af1ff91e66cfde25000024"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af1ff91e66cfde25000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af1ff81e66cfde25000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:41 UTC, "created_at"=>2013-06-05 11:24:41 UTC}] flags=[] (0.2277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff81e66cfde25000021", "template_dependencies.en"=>{"$in"=>["51af1ff91e66cfde25000024"]}}, "$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"=>"51af1ff91e66cfde25000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3002ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ff91e66cfde25000024"]}} 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"=>"51af1ff81e66cfde25000021", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af1ff81e66cfde25000021", "_id"=>{"$ne"=>"51af1ff91e66cfde25000025"}}} (0.4818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ff81e66cfde25000021", "_id"=>{"$ne"=>"51af1ff91e66cfde25000025"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af1ff81e66cfde25000021", "_id"=>{"$ne"=>"51af1ff91e66cfde25000025"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2382ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af1ff91e66cfde25000025", "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"=>"51af1ff81e66cfde25000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:24:41 UTC, "created_at"=>2013-06-05 11:24:41 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff81e66cfde25000021", "template_dependencies.en"=>{"$in"=>["51af1ff91e66cfde25000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af1ff91e66cfde25000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2511ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af1ff91e66cfde25000025"]}} 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"=>"51af1ff81e66cfde25000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af1ff91e66cfde25000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af1ff81e66cfde25000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af1ff91e66cfde25000027", "updated_at"=>2013-06-05 11:24:41 UTC, "created_at"=>2013-06-05 11:24:41 UTC, "entries_custom_fields"=>[{"_id"=>"51af1ff91e66cfde25000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ff91e66cfde25000028"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff91e66cfde25000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af1ff91e66cfde25000026", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4191ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff91e66cfde25000026"]}}} (0.3083ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af1ff91e66cfde25000028", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af1ff91e66cfde25000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af1ff91e66cfde25000026", "content_type_id"=>"51af1ff91e66cfde25000026", "_slug"=>"not-findable-entry", "site_id"=>"51af1ff81e66cfde25000021", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:24:41 UTC, "created_at"=>2013-06-05 11:24:41 UTC}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ff61e66cfde2500001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff61e66cfde2500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af1ff71e66cfde2500001e"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff61e66cfde2500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6280ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff61e66cfde2500001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1121ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1ff61e66cfde2500001a"} update={"$set"=>{"updated_at"=>2013-06-05 11:24:42 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"=>"51af1ff61e66cfde2500001a"} 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.1242ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:24:42 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff61e66cfde25000016", "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 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:24:42 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff61e66cfde25000016", "depth"=>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 179ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af1ff61e66cfde2500001a"} 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_content_entries selector={"content_type_id"=>"51af1ff61e66cfde2500001a", "updated_at"=>{"$lt"=>2013-06-05 11:24:42 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af1ff61e66cfde2500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1ff61e66cfde25000016"}, "$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_content_types selector={"$query"=>{"_id"=>"51af1ff61e66cfde2500001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6268ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af1ff61e66cfde2500001d"} update={"$set"=>{"updated_at"=>2013-06-05 11:24:42 UTC}} flags=[] (0.0999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af1ff61e66cfde25000016"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"51af1ff61e66cfde2500001a"}, "$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=locomotive_content_entries selector={"_id"=>"51af1ff71e66cfde2500001e"} update={"$set"=>{"updated_at"=>2013-06-05 11:24:42 UTC}} flags=[] (0.0896ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:24:43 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:24:43 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff61e66cfde25000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7920ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:24:43 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af1ff61e66cfde25000016", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6909ms) Rendered text template (0.0ms) Completed 200 OK in 310ms (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.6411ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3461ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4110ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1482ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7408ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0240ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9243ms) MOPED: 127.0.0.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.3781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af200d1e66cf22a1000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"5e8ec3a04ab3144fe2ea06e59bd587489abc7ce4", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"tTiUg6CUHR2SZzj3qX5y", "api_key"=>"d2eefcc81a5558d4c0d596fb2727793c19eca690", "updated_at"=>2013-06-05 11:25:01 UTC, "created_at"=>2013-06-05 11:25:01 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.8268ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af200d1e66cf22a1000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:25:01 UTC, "updated_at"=>2013-06-05 11:25:01 UTC, "memberships"=>[{"_id"=>"51af200d1e66cf22a1000003", "role"=>"admin", "account_id"=>"51af200d1e66cf22a1000001"}]}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200d1e66cf22a1000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9639ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af200d1e66cf22a1000002", "_id"=>{"$ne"=>"51af200e1e66cf22a1000004"}}} (0.7141ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af200e1e66cf22a1000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af200d1e66cf22a1000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af200e1e66cf22a1000004"}, "$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"=>{"site_id"=>"51af200d1e66cf22a1000002", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000004"]}}, "$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"=>["51af200e1e66cf22a1000004"]}} 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"=>"51af200e1e66cf22a1000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5457ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a1000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af200d1e66cf22a1000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200d1e66cf22a1000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af200d1e66cf22a1000002", "_id"=>{"$ne"=>"51af200e1e66cf22a1000006"}}} (0.6468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200d1e66cf22a1000002", "_id"=>{"$ne"=>"51af200e1e66cf22a1000006"}}, "$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"=>nil, "site_id"=>"51af200d1e66cf22a1000002", "_id"=>{"$ne"=>"51af200e1e66cf22a1000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af200e1e66cf22a1000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af200d1e66cf22a1000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200d1e66cf22a1000002", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000006"]}}, "$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"=>"51af200e1e66cf22a1000006"}, "$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"=>["51af200e1e66cf22a1000006"]}} 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"=>"51af200d1e66cf22a1000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af200e1e66cf22a1000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af200d1e66cf22a1000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af200e1e66cf22a1000008", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC, "entries_custom_fields"=>[{"_id"=>"51af200e1e66cf22a1000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af200e1e66cf22a1000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af200e1e66cf22a1000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}}} flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af200e1e66cf22a100000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af200e1e66cf22a1000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3288ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000007"]}}} (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af200e1e66cf22a100000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af200e1e66cf22a1000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000007", "content_type_id"=>"51af200e1e66cf22a1000007", "_slug"=>"findable-entry", "site_id"=>"51af200d1e66cf22a1000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000007", "_original_id"=>"51af200e1e66cf22a100000a"}, "$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"=>"51af200e1e66cf22a100000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af200d1e66cf22a1000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000007", "_original_id"=>"51af200e1e66cf22a100000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af200e1e66cf22a100000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2797ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af200e1e66cf22a1000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2749ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000007"]}}} (0.4761ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.3939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af200e1e66cf22a100000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af200e1e66cf22a1000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000007", "content_type_id"=>"51af200e1e66cf22a1000007", "_slug"=>"hidden", "site_id"=>"51af200d1e66cf22a1000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000007", "_original_id"=>"51af200e1e66cf22a100000c"}, "$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"=>"51af200e1e66cf22a100000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af200d1e66cf22a1000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000007", "_original_id"=>"51af200e1e66cf22a100000c", "_keywords"=>["hidden"]}] flags=[] (0.1018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200d1e66cf22a1000002", "parent_id"=>"51af200e1e66cf22a1000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af200e1e66cf22a1000004", "site_id"=>"51af200d1e66cf22a1000002", "_id"=>{"$ne"=>"51af200e1e66cf22a100000e"}}} (0.3133ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af200e1e66cf22a1000004"]}} 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"=>"51af200e1e66cf22a100000e", "parent_ids"=>["51af200e1e66cf22a1000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af200d1e66cf22a1000002", "parent_id"=>"51af200e1e66cf22a1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200d1e66cf22a1000002", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a100000e"]}}, "$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"=>"51af200e1e66cf22a100000e"}, "$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"=>["51af200e1e66cf22a100000e"]}} 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"=>"51af200e1e66cf22a100000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a100000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af200d1e66cf22a1000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a100000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200d1e66cf22a1000002", "parent_id"=>"51af200e1e66cf22a1000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af200e1e66cf22a1000004", "site_id"=>"51af200d1e66cf22a1000002", "_id"=>{"$ne"=>"51af200e1e66cf22a1000010"}}} (0.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af200e1e66cf22a1000004", "site_id"=>"51af200d1e66cf22a1000002", "_id"=>{"$ne"=>"51af200e1e66cf22a1000010"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af200e1e66cf22a1000004", "site_id"=>"51af200d1e66cf22a1000002", "_id"=>{"$ne"=>"51af200e1e66cf22a1000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af200e1e66cf22a1000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af200e1e66cf22a1000010", "parent_ids"=>["51af200e1e66cf22a1000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af200d1e66cf22a1000002", "parent_id"=>"51af200e1e66cf22a1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200d1e66cf22a1000002", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af200e1e66cf22a1000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2410ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af200e1e66cf22a1000010"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a1000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af200d1e66cf22a1000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000010", "_keywords"=>["en:search"]}] flags=[] (0.1082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200d1e66cf22a1000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af200d1e66cf22a1000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3109ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af200e1e66cf22a1000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:25:02 UTC}} flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200d1e66cf22a1000002", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7591ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af200e1e66cf22a1000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af200d1e66cf22a1000002"}}} 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.4311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3393ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af200e1e66cf22a1000012", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:25:01 UTC, "updated_at"=>2013-06-05 11:25:02 UTC, "memberships"=>[{"_id"=>"51af200e1e66cf22a1000013", "role"=>"admin", "account_id"=>"51af200d1e66cf22a1000001"}]}] flags=[] (0.1378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200e1e66cf22a1000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4191ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a1000012", "_id"=>{"$ne"=>"51af200e1e66cf22a1000014"}}} (0.7012ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af200e1e66cf22a1000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af200e1e66cf22a1000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a1000012", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af200e1e66cf22a1000014"}, "$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"=>["51af200e1e66cf22a1000014"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a1000015", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af200e1e66cf22a1000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200e1e66cf22a1000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a1000012", "_id"=>{"$ne"=>"51af200e1e66cf22a1000016"}}} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a1000012", "_id"=>{"$ne"=>"51af200e1e66cf22a1000016"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a1000012", "_id"=>{"$ne"=>"51af200e1e66cf22a1000016"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4423ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af200e1e66cf22a1000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af200e1e66cf22a1000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a1000012", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000016"]}}, "$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"=>"51af200e1e66cf22a1000016"}, "$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"=>["51af200e1e66cf22a1000016"]}} 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"=>"51af200e1e66cf22a1000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4711ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a1000012", "_id"=>{"$ne"=>"51af200e1e66cf22a1000017"}}} (0.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a1000012", "_id"=>{"$ne"=>"51af200e1e66cf22a1000017"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a1000012", "_id"=>{"$ne"=>"51af200e1e66cf22a1000017"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3488ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af200e1e66cf22a1000017", "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"=>"51af200e1e66cf22a1000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a1000012", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000017"]}}, "$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"=>"51af200e1e66cf22a1000017"}, "$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"=>["51af200e1e66cf22a1000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000017"}, "$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"=>"51af200e1e66cf22a1000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af200e1e66cf22a1000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000017", "_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.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af200e1e66cf22a1000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af200e1e66cf22a1000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af200e1e66cf22a1000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af200e1e66cf22a100001a", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC, "entries_custom_fields"=>[{"_id"=>"51af200e1e66cf22a100001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af200e1e66cf22a100001b"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000019"]}} 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_content_entries selector={"content_type_id"=>"51af200e1e66cf22a1000019", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3371ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000019"]}}} (0.4828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af200e1e66cf22a100001b", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af200e1e66cf22a1000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000019", "content_type_id"=>"51af200e1e66cf22a1000019", "_slug"=>"not-findable-entry", "site_id"=>"51af200e1e66cf22a1000012", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000019", "_original_id"=>"51af200e1e66cf22a100001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3712ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a100001c", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af200e1e66cf22a1000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000019", "_original_id"=>"51af200e1e66cf22a100001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1171ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:25:02 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200d1e66cf22a1000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6847ms) Rendered text template (0.0ms) Completed 200 OK in 82ms (Views: 77.2ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:25:02 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200d1e66cf22a1000002", "depth"=>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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af200d1e66cf22a1000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4950ms) Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:25:02 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200d1e66cf22a1000002", "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.4971ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:25:02 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200d1e66cf22a1000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:25:02 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200d1e66cf22a1000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$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=active_search_mongoid_models selector={"_stored.site_id"=>"51af200d1e66cf22a1000002", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0722ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1220ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.7713ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.5279ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7279ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3011ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af200e1e66cf22a100001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"28cadb12d7561a2acd8fa568d994e6f0d2df6f79", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"RtqwRfy69xPU8pqScQZY", "api_key"=>"94c7018bf208531aae8949d7e438408079e6328d", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} 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_sites documents=[{"_id"=>"51af200e1e66cf22a100001e", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:25:01 UTC, "updated_at"=>2013-06-05 11:25:02 UTC, "memberships"=>[{"_id"=>"51af200e1e66cf22a100001f", "role"=>"admin", "account_id"=>"51af200e1e66cf22a100001d"}]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200e1e66cf22a100001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100001e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000020"}}} (0.5672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af200e1e66cf22a1000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af200e1e66cf22a100001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (54.7578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100001e", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000020"]}}, "$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"=>"51af200e1e66cf22a1000020"}, "$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"=>["51af200e1e66cf22a1000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0877ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000020"}, "$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"=>"51af200e1e66cf22a1000021", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af200e1e66cf22a100001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200e1e66cf22a100001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4609ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100001e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000022"}}} (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100001e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000022"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100001e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000022"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af200e1e66cf22a1000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af200e1e66cf22a100001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100001e", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af200e1e66cf22a1000022"}, "$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"=>["51af200e1e66cf22a1000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af200e1e66cf22a100001e", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af200e1e66cf22a1000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af200e1e66cf22a100001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af200e1e66cf22a1000024", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC, "entries_custom_fields"=>[{"_id"=>"51af200e1e66cf22a1000024", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af200e1e66cf22a1000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af200e1e66cf22a1000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}}} flags=[] (0.1471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af200e1e66cf22a1000026"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af200e1e66cf22a1000023", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2792ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000023"]}}} (0.3591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af200e1e66cf22a1000026", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af200e1e66cf22a1000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000023", "content_type_id"=>"51af200e1e66cf22a1000023", "_slug"=>"findable-entry", "site_id"=>"51af200e1e66cf22a100001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 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::ContentEntry51af200e1e66cf22a1000023", "_original_id"=>"51af200e1e66cf22a1000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.6860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a1000027", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af200e1e66cf22a100001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000023", "_original_id"=>"51af200e1e66cf22a1000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af200e1e66cf22a1000028"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000023"]}} 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_content_entries selector={"content_type_id"=>"51af200e1e66cf22a1000023", "_slug"=>"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::ContentEntry51af200e1e66cf22a1000023"]}}} (0.4539ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af200e1e66cf22a1000028", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af200e1e66cf22a1000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000023", "content_type_id"=>"51af200e1e66cf22a1000023", "_slug"=>"hidden", "site_id"=>"51af200e1e66cf22a100001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000023", "_original_id"=>"51af200e1e66cf22a1000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3526ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a1000029", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af200e1e66cf22a100001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000023", "_original_id"=>"51af200e1e66cf22a1000028", "_keywords"=>["hidden"]}] flags=[] (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.5260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200e1e66cf22a100001e", "parent_id"=>"51af200e1e66cf22a1000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5660ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af200e1e66cf22a1000020", "site_id"=>"51af200e1e66cf22a100001e", "_id"=>{"$ne"=>"51af200e1e66cf22a100002a"}}} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af200e1e66cf22a1000020"]}} 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"=>"51af200e1e66cf22a100002a", "parent_ids"=>["51af200e1e66cf22a1000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af200e1e66cf22a100001e", "parent_id"=>"51af200e1e66cf22a1000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100001e", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a100002a"]}}, "$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"=>"51af200e1e66cf22a100002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4423ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af200e1e66cf22a100002a"]}} 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"=>"51af200e1e66cf22a100002a"}, "$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"=>"51af200e1e66cf22a100002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af200e1e66cf22a100001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a100002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1307ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200e1e66cf22a100001e", "parent_id"=>"51af200e1e66cf22a1000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5581ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af200e1e66cf22a1000020", "site_id"=>"51af200e1e66cf22a100001e", "_id"=>{"$ne"=>"51af200e1e66cf22a100002c"}}} (0.6282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af200e1e66cf22a1000020", "site_id"=>"51af200e1e66cf22a100001e", "_id"=>{"$ne"=>"51af200e1e66cf22a100002c"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af200e1e66cf22a1000020", "site_id"=>"51af200e1e66cf22a100001e", "_id"=>{"$ne"=>"51af200e1e66cf22a100002c"}}, "$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={"_id"=>{"$in"=>["51af200e1e66cf22a1000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af200e1e66cf22a100002c", "parent_ids"=>["51af200e1e66cf22a1000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af200e1e66cf22a100001e", "parent_id"=>"51af200e1e66cf22a1000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100001e", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a100002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af200e1e66cf22a100002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af200e1e66cf22a100002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a100002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a100002d", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af200e1e66cf22a100001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a100002c", "_keywords"=>["en:search"]}] flags=[] (0.0989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af200e1e66cf22a100001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af200e1e66cf22a1000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:25:02 UTC}} flags=[] (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100001e", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000020"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4177ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af200e1e66cf22a1000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af200e1e66cf22a100001e"}}} flags=[] (0.0932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af200e1e66cf22a100002e", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:25:01 UTC, "updated_at"=>2013-06-05 11:25:02 UTC, "memberships"=>[{"_id"=>"51af200e1e66cf22a100002f", "role"=>"admin", "account_id"=>"51af200e1e66cf22a100001d"}]}] flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200e1e66cf22a100002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6099ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100002e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000030"}}} (0.7339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af200e1e66cf22a1000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af200e1e66cf22a100002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100002e", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af200e1e66cf22a1000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2661ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af200e1e66cf22a1000030"]}} 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"=>"51af200e1e66cf22a1000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2229ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a1000031", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af200e1e66cf22a100002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af200e1e66cf22a100002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3712ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100002e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000032"}}} (0.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100002e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000032"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100002e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000032"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"51af200e1e66cf22a1000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af200e1e66cf22a100002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100002e", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000032"]}}, "$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"=>"51af200e1e66cf22a1000032"}, "$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"=>["51af200e1e66cf22a1000032"]}} 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"=>"51af200e1e66cf22a100002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5288ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100002e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000033"}}} (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100002e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000033"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af200e1e66cf22a100002e", "_id"=>{"$ne"=>"51af200e1e66cf22a1000033"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} 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"=>"51af200e1e66cf22a1000033", "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"=>"51af200e1e66cf22a100002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100002e", "template_dependencies.en"=>{"$in"=>["51af200e1e66cf22a1000033"]}}, "$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"=>"51af200e1e66cf22a1000033"}, "$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"=>["51af200e1e66cf22a1000033"]}} 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"=>"51af200e1e66cf22a1000033"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a1000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af200e1e66cf22a100002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af200e1e66cf22a1000033", "_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.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af200e1e66cf22a100002e", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af200e1e66cf22a1000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af200e1e66cf22a100002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af200e1e66cf22a1000036", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC, "entries_custom_fields"=>[{"_id"=>"51af200e1e66cf22a1000036", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af200e1e66cf22a1000037"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000035"]}} 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"=>"51af200e1e66cf22a1000035", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000035"]}}} (0.4010ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af200e1e66cf22a1000037", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af200e1e66cf22a1000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000035", "content_type_id"=>"51af200e1e66cf22a1000035", "_slug"=>"not-findable-entry", "site_id"=>"51af200e1e66cf22a100002e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:02 UTC, "created_at"=>2013-06-05 11:25:02 UTC}] flags=[] (0.1502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000035", "_original_id"=>"51af200e1e66cf22a1000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af200e1e66cf22a1000038", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af200e1e66cf22a100002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000035", "_original_id"=>"51af200e1e66cf22a1000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af200e1e66cf22a1000026"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000023"]}} 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_content_entries selector={"_id"=>{"$ne"=>"51af200e1e66cf22a1000028"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000023"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000023"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1190ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af200e1e66cf22a1000023"} update={"$set"=>{"updated_at"=>2013-06-05 11:25:02 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0808ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af200e1e66cf22a1000023"} 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-06-05 13:25:03 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5262ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:25:03 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af200e1e66cf22a100001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3369ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af200e1e66cf22a1000023"} 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_content_entries selector={"content_type_id"=>"51af200e1e66cf22a1000023", "updated_at"=>{"$lt"=>2013-06-05 11:25:02 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af200e1e66cf22a1000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af200e1e66cf22a100001e"}, "$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_content_types selector={"$query"=>{"_id"=>"51af200e1e66cf22a1000023"}, "$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"=>"51af200e1e66cf22a1000026"} update={"$set"=>{"updated_at"=>2013-06-05 11:25:03 UTC}} flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000023", "_original_id"=>"51af200e1e66cf22a1000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af200e1e66cf22a1000027"} update={"$set"=>{"_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af200e1e66cf22a100001e", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af200e1e66cf22a100001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af200e1e66cf22a1000023"}, "$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_content_entries selector={"_id"=>"51af200e1e66cf22a1000028"} update={"$set"=>{"updated_at"=>2013-06-05 11:25:03 UTC}} flags=[] (0.0777ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af200e1e66cf22a1000023", "_original_id"=>"51af200e1e66cf22a1000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af200e1e66cf22a1000029"} update={"$set"=>{"_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af200e1e66cf22a100001e", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.0939ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:25:03 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:25:03 +0200 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.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5169ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:25:03 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af200e1e66cf22a100001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$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=active_search_mongoid_models selector={"_stored.site_id"=>"51af200e1e66cf22a100001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4988ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5183ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0309ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2259ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0228ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.7670ms) 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.8371ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9742ms) MOPED: 127.0.0.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.2482ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3943ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af20221e66cf7e1c000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0b308a73515cbb7a08a0cc84a51bea62d3650141", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"XGynjrJN9e2mFUHbkqgp", "api_key"=>"0f40f52547b579d4c07f5f61a9b3106f08d1486f", "updated_at"=>2013-06-05 11:25:22 UTC, "created_at"=>2013-06-05 11:25:22 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.6979ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20221e66cf7e1c000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:25:22 UTC, "updated_at"=>2013-06-05 11:25:22 UTC, "memberships"=>[{"_id"=>"51af20221e66cf7e1c000003", "role"=>"admin", "account_id"=>"51af20221e66cf7e1c000001"}]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} 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={"site_id"=>"51af20221e66cf7e1c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20221e66cf7e1c000002", "_id"=>{"$ne"=>"51af20221e66cf7e1c000004"}}} (0.3610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20221e66cf7e1c000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20221e66cf7e1c000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:22 UTC, "created_at"=>2013-06-05 11:25:22 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20221e66cf7e1c000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20221e66cf7e1c000002", "template_dependencies.en"=>{"$in"=>["51af20221e66cf7e1c000004"]}}, "$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"=>["51af20221e66cf7e1c000004"]}} 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"=>"51af20221e66cf7e1c000004"}, "$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"=>"51af20221e66cf7e1c000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20221e66cf7e1c000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20221e66cf7e1c000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1717ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20221e66cf7e1c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6781ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20221e66cf7e1c000002", "_id"=>{"$ne"=>"51af20221e66cf7e1c000006"}}} (0.6719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20221e66cf7e1c000002", "_id"=>{"$ne"=>"51af20221e66cf7e1c000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7176ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20221e66cf7e1c000002", "_id"=>{"$ne"=>"51af20221e66cf7e1c000006"}}, "$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"=>"51af20221e66cf7e1c000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20221e66cf7e1c000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:22 UTC, "created_at"=>2013-06-05 11:25:22 UTC}] flags=[] (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20221e66cf7e1c000002", "template_dependencies.en"=>{"$in"=>["51af20221e66cf7e1c000006"]}}, "$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"=>"51af20221e66cf7e1c000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2940ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20221e66cf7e1c000006"]}} 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_content_types selector={"site_id"=>"51af20221e66cf7e1c000002", "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"=>"51af20221e66cf7e1c000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20221e66cf7e1c000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20231e66cf7e1c000008", "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC, "entries_custom_fields"=>[{"_id"=>"51af20231e66cf7e1c000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1561ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.8180ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3731ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20221e66cf7e1c000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af20231e66cf7e1c000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}}} flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20231e66cf7e1c00000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20221e66cf7e1c000007"]}} 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_content_entries selector={"content_type_id"=>"51af20221e66cf7e1c000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4430ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20221e66cf7e1c000007"]}}} (0.4637ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20231e66cf7e1c00000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20221e66cf7e1c000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20221e66cf7e1c000007", "content_type_id"=>"51af20221e66cf7e1c000007", "_slug"=>"findable-entry", "site_id"=>"51af20221e66cf7e1c000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20221e66cf7e1c000007", "_original_id"=>"51af20231e66cf7e1c00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3753ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20231e66cf7e1c00000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af20221e66cf7e1c000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20221e66cf7e1c000007", "_original_id"=>"51af20231e66cf7e1c00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20231e66cf7e1c00000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20221e66cf7e1c000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6728ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20221e66cf7e1c000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20221e66cf7e1c000007"]}}} (0.3171ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20221e66cf7e1c000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4818ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20231e66cf7e1c00000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20221e66cf7e1c000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20221e66cf7e1c000007", "content_type_id"=>"51af20221e66cf7e1c000007", "_slug"=>"hidden", "site_id"=>"51af20221e66cf7e1c000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20221e66cf7e1c000007", "_original_id"=>"51af20231e66cf7e1c00000c"}, "$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"=>"51af20231e66cf7e1c00000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af20221e66cf7e1c000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20221e66cf7e1c000007", "_original_id"=>"51af20231e66cf7e1c00000c", "_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.5062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"subdomain"=>"acme"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"acme"} 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"=>"51af20231e66cf7e1c00000f", "locales"=>["en"], "domains"=>["acme.example.com"], "name"=>"Acme Website", "subdomain"=>"acme", "created_at"=>2013-06-05 11:25:22 UTC, "updated_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20231e66cf7e1c00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4072ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c00000f", "_id"=>{"$ne"=>"51af20231e66cf7e1c000010"}}} (0.6390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20231e66cf7e1c000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20231e66cf7e1c00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c00000f", "template_dependencies.en"=>{"$in"=>["51af20231e66cf7e1c000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3116ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20231e66cf7e1c000010"}, "$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"=>["51af20231e66cf7e1c000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20231e66cf7e1c000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20231e66cf7e1c000011", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20231e66cf7e1c00000f"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20231e66cf7e1c000010", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20231e66cf7e1c00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4299ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c00000f", "_id"=>{"$ne"=>"51af20231e66cf7e1c000012"}}} (0.5922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c00000f", "_id"=>{"$ne"=>"51af20231e66cf7e1c000012"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c00000f", "_id"=>{"$ne"=>"51af20231e66cf7e1c000012"}}, "$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"=>"51af20231e66cf7e1c000012", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20231e66cf7e1c00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c00000f", "template_dependencies.en"=>{"$in"=>["51af20231e66cf7e1c000012"]}}, "$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"=>"51af20231e66cf7e1c000012"}, "$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"=>["51af20231e66cf7e1c000012"]}} 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"=>"51af20231e66cf7e1c00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4432ms) 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=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.6182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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.3309ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af20231e66cf7e1c000014", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3d731ffaf8d2da4610d95b7ae21f27c4e0e761b9", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"oGZWwfANvwdxqMLqk3Rx", "api_key"=>"c33f3cedfc7951175d6f715a3636371e3882d290", "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3049ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20231e66cf7e1c000015", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:25:22 UTC, "updated_at"=>2013-06-05 11:25:23 UTC, "memberships"=>[{"_id"=>"51af20231e66cf7e1c000016", "role"=>"admin", "account_id"=>"51af20231e66cf7e1c000014"}]}] flags=[] (0.1328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20231e66cf7e1c000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c000015", "_id"=>{"$ne"=>"51af20231e66cf7e1c000017"}}} (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20231e66cf7e1c000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20231e66cf7e1c000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c000015", "template_dependencies.en"=>{"$in"=>["51af20231e66cf7e1c000017"]}}, "$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"=>"51af20231e66cf7e1c000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3178ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20231e66cf7e1c000017"]}} 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"=>"51af20231e66cf7e1c000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20231e66cf7e1c000018", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20231e66cf7e1c000015"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20231e66cf7e1c000017", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20231e66cf7e1c000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c000015", "_id"=>{"$ne"=>"51af20231e66cf7e1c000019"}}} (0.3998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c000015", "_id"=>{"$ne"=>"51af20231e66cf7e1c000019"}}, "$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"=>nil, "site_id"=>"51af20231e66cf7e1c000015", "_id"=>{"$ne"=>"51af20231e66cf7e1c000019"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af20231e66cf7e1c000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20231e66cf7e1c000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c000015", "template_dependencies.en"=>{"$in"=>["51af20231e66cf7e1c000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20231e66cf7e1c000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20231e66cf7e1c000019"]}} 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"=>"51af20231e66cf7e1c000015", "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"=>"51af20231e66cf7e1c00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20231e66cf7e1c000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20231e66cf7e1c00001b", "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC, "entries_custom_fields"=>[{"_id"=>"51af20231e66cf7e1c00001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1748ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20231e66cf7e1c00001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af20231e66cf7e1c00001c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}}} flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20231e66cf7e1c00001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20231e66cf7e1c00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4363ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20231e66cf7e1c00001a", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4652ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20231e66cf7e1c00001a"]}}} (0.4141ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20231e66cf7e1c00001d", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20231e66cf7e1c00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20231e66cf7e1c00001a", "content_type_id"=>"51af20231e66cf7e1c00001a", "_slug"=>"findable-entry", "site_id"=>"51af20231e66cf7e1c000015", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 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::ContentEntry51af20231e66cf7e1c00001a", "_original_id"=>"51af20231e66cf7e1c00001d"}, "$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"=>"51af20231e66cf7e1c00001e", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af20231e66cf7e1c000015", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20231e66cf7e1c00001a", "_original_id"=>"51af20231e66cf7e1c00001d", "_keywords"=>["findable", "entry"]}] flags=[] (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20231e66cf7e1c00001f"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20231e66cf7e1c00001a"]}} 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"=>"51af20231e66cf7e1c00001a", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20231e66cf7e1c00001a"]}}} (0.3412ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20231e66cf7e1c00001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20231e66cf7e1c00001f", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20231e66cf7e1c00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20231e66cf7e1c00001a", "content_type_id"=>"51af20231e66cf7e1c00001a", "_slug"=>"hidden", "site_id"=>"51af20231e66cf7e1c000015", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 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::ContentEntry51af20231e66cf7e1c00001a", "_original_id"=>"51af20231e66cf7e1c00001f"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20231e66cf7e1c000020", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af20231e66cf7e1c000015", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20231e66cf7e1c00001a", "_original_id"=>"51af20231e66cf7e1c00001f", "_keywords"=>["hidden"]}] flags=[] (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.5589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20231e66cf7e1c000015", "parent_id"=>"51af20231e66cf7e1c000017", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af20231e66cf7e1c000017", "site_id"=>"51af20231e66cf7e1c000015", "_id"=>{"$ne"=>"51af20231e66cf7e1c000021"}}} (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20231e66cf7e1c000017"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20231e66cf7e1c000021", "parent_ids"=>["51af20231e66cf7e1c000017"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20231e66cf7e1c000015", "parent_id"=>"51af20231e66cf7e1c000017", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c000015", "template_dependencies.en"=>{"$in"=>["51af20231e66cf7e1c000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20231e66cf7e1c000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3748ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20231e66cf7e1c000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20231e66cf7e1c000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20231e66cf7e1c000022", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af20231e66cf7e1c000015"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20231e66cf7e1c000021", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20231e66cf7e1c000015", "parent_id"=>"51af20231e66cf7e1c000017", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af20231e66cf7e1c000017", "site_id"=>"51af20231e66cf7e1c000015", "_id"=>{"$ne"=>"51af20231e66cf7e1c000023"}}} (0.4480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20231e66cf7e1c000017", "site_id"=>"51af20231e66cf7e1c000015", "_id"=>{"$ne"=>"51af20231e66cf7e1c000023"}}, "$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"=>"51af20231e66cf7e1c000017", "site_id"=>"51af20231e66cf7e1c000015", "_id"=>{"$ne"=>"51af20231e66cf7e1c000023"}}, "$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={"_id"=>{"$in"=>["51af20231e66cf7e1c000017"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3667ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20231e66cf7e1c000023", "parent_ids"=>["51af20231e66cf7e1c000017"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20231e66cf7e1c000015", "parent_id"=>"51af20231e66cf7e1c000017", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c000015", "template_dependencies.en"=>{"$in"=>["51af20231e66cf7e1c000023"]}}, "$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"=>"51af20231e66cf7e1c000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2623ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20231e66cf7e1c000023"]}} 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"=>"51af20231e66cf7e1c000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20231e66cf7e1c000024", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af20231e66cf7e1c000015"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20231e66cf7e1c000023", "_keywords"=>["en:search"]}] flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c000015", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20231e66cf7e1c000015"}, "$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"=>"51af20231e66cf7e1c000017"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:25:23 UTC}} flags=[] (0.1009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c000015", "template_dependencies.en"=>{"$in"=>["51af20231e66cf7e1c000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20231e66cf7e1c000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af20231e66cf7e1c000018"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20231e66cf7e1c000015"}}} flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1: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"=>"51af20231e66cf7e1c000025", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:25:22 UTC, "updated_at"=>2013-06-05 11:25:23 UTC, "memberships"=>[{"_id"=>"51af20231e66cf7e1c000026", "role"=>"admin", "account_id"=>"51af20231e66cf7e1c000014"}]}] flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20231e66cf7e1c000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c000025", "_id"=>{"$ne"=>"51af20231e66cf7e1c000027"}}} (0.4418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20231e66cf7e1c000027", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20231e66cf7e1c000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c000025", "template_dependencies.en"=>{"$in"=>["51af20231e66cf7e1c000027"]}}, "$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"=>"51af20231e66cf7e1c000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20231e66cf7e1c000027"]}} 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"=>"51af20231e66cf7e1c000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20231e66cf7e1c000028", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20231e66cf7e1c000025"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20231e66cf7e1c000027", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20231e66cf7e1c000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c000025", "_id"=>{"$ne"=>"51af20231e66cf7e1c000029"}}} (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c000025", "_id"=>{"$ne"=>"51af20231e66cf7e1c000029"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"51af20231e66cf7e1c000025", "_id"=>{"$ne"=>"51af20231e66cf7e1c000029"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20231e66cf7e1c000029", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20231e66cf7e1c000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c000025", "template_dependencies.en"=>{"$in"=>["51af20231e66cf7e1c000029"]}}, "$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"=>"51af20231e66cf7e1c000029"}, "$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"=>["51af20231e66cf7e1c000029"]}} 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"=>"51af20231e66cf7e1c000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c000025", "_id"=>{"$ne"=>"51af20231e66cf7e1c00002a"}}} (0.4461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c000025", "_id"=>{"$ne"=>"51af20231e66cf7e1c00002a"}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>nil, "site_id"=>"51af20231e66cf7e1c000025", "_id"=>{"$ne"=>"51af20231e66cf7e1c00002a"}}, "$orderby"=>{"position"=>-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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20231e66cf7e1c00002a", "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"=>"51af20231e66cf7e1c000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20231e66cf7e1c000025", "template_dependencies.en"=>{"$in"=>["51af20231e66cf7e1c00002a"]}}, "$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_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20231e66cf7e1c00002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2580ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20231e66cf7e1c00002a"]}} 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"=>"51af20231e66cf7e1c00002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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=active_search_mongoid_models documents=[{"_id"=>"51af20231e66cf7e1c00002b", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af20231e66cf7e1c000025"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20231e66cf7e1c00002a", "_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.1609ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4618ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4141ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.3908ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.3767ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6030ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af20231e66cf7e1c000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20231e66cf7e1c00002c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20231e66cf7e1c000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20231e66cf7e1c00002d", "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC, "entries_custom_fields"=>[{"_id"=>"51af20231e66cf7e1c00002d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20231e66cf7e1c00002e"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20231e66cf7e1c00002c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20231e66cf7e1c00002c", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20231e66cf7e1c00002c"]}}} (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20231e66cf7e1c00002e", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20231e66cf7e1c00002c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20231e66cf7e1c00002c", "content_type_id"=>"51af20231e66cf7e1c00002c", "_slug"=>"not-findable-entry", "site_id"=>"51af20231e66cf7e1c000025", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:23 UTC, "created_at"=>2013-06-05 11:25:23 UTC}] flags=[] (0.1748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20231e66cf7e1c00002c", "_original_id"=>"51af20231e66cf7e1c00002e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20231e66cf7e1c00002f", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af20231e66cf7e1c000025", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20231e66cf7e1c00002c", "_original_id"=>"51af20231e66cf7e1c00002e", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20231e66cf7e1c00001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20231e66cf7e1c00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20231e66cf7e1c00001f"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20231e66cf7e1c00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af20231e66cf7e1c00001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1390ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20231e66cf7e1c00001a"} update={"$set"=>{"updated_at"=>2013-06-05 11:25:23 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0908ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20231e66cf7e1c00001a"} 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.1242ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:25:23 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2949ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_accounts", :query=>{}} (0.2871ms) Redirected to http://test.example.com/locomotive/installation Filter chain halted as :require_site rendered or redirected Completed 302 Found in 3ms Started GET "/locomotive/installation" for 127.0.0.1 at 2013-06-05 13:25:23 +0200 Processing by Locomotive::InstallationController#show as HTML Parameters: {"step"=>1} MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4430ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{}} (0.4022ms) Rendered /usr/local/lib/ruby/gems/1.9.1/gems/locomotive_cms-2.1.0/app/views/locomotive/installation/step_1.html.haml within /locomotive/layouts/not_logged_in (132.1ms) Completed 200 OK in 156ms (Views: 153.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.5651ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4511ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3872ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4520ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0209ms) MOPED: 127.0.0.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) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8321ms) MOPED: 127.0.0.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.1979ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4344ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af20451e66cf7044000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"53f52c960ecde078bf1733097261789fb947cb3a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"4y7VsDSpnJZzHp8jSLpY", "api_key"=>"8cfe03186927980668e166671a6933b6422f619e", "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 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.6042ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20451e66cf7044000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:25:57 UTC, "updated_at"=>2013-06-05 11:25:57 UTC, "memberships"=>[{"_id"=>"51af20451e66cf7044000003", "role"=>"admin", "account_id"=>"51af20451e66cf7044000001"}]}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6196ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20451e66cf7044000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8099ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20451e66cf7044000002", "_id"=>{"$ne"=>"51af20451e66cf7044000004"}}} (0.5839ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20451e66cf7044000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20451e66cf7044000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20451e66cf7044000004"}, "$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"=>"51af20451e66cf7044000002", "template_dependencies.en"=>{"$in"=>["51af20451e66cf7044000004"]}}, "$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"=>["51af20451e66cf7044000004"]}} 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"=>"51af20451e66cf7044000004"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af20451e66cf7044000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20451e66cf7044000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20451e66cf7044000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20451e66cf7044000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20451e66cf7044000002", "_id"=>{"$ne"=>"51af20451e66cf7044000006"}}} (0.6502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20451e66cf7044000002", "_id"=>{"$ne"=>"51af20451e66cf7044000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20451e66cf7044000002", "_id"=>{"$ne"=>"51af20451e66cf7044000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20451e66cf7044000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20451e66cf7044000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20451e66cf7044000002", "template_dependencies.en"=>{"$in"=>["51af20451e66cf7044000006"]}}, "$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"=>"51af20451e66cf7044000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3037ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20451e66cf7044000006"]}} 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"=>"51af20451e66cf7044000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20451e66cf7044000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20451e66cf7044000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20451e66cf7044000008", "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC, "entries_custom_fields"=>[{"_id"=>"51af20451e66cf7044000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2487ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20451e66cf7044000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af20451e66cf7044000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC}}} flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20451e66cf704400000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20451e66cf7044000007"]}} 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"=>"51af20451e66cf7044000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3479ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20451e66cf7044000007"]}}} (0.4179ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20451e66cf704400000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20451e66cf7044000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20451e66cf7044000007", "content_type_id"=>"51af20451e66cf7044000007", "_slug"=>"findable-entry", "site_id"=>"51af20451e66cf7044000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20451e66cf7044000007", "_original_id"=>"51af20451e66cf704400000a"}, "$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"=>"51af20451e66cf704400000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af20451e66cf7044000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20451e66cf7044000007", "_original_id"=>"51af20451e66cf704400000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20451e66cf704400000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20451e66cf7044000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20451e66cf7044000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2408ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20451e66cf7044000007"]}}} (0.3459ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20451e66cf7044000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20451e66cf704400000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20451e66cf7044000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20451e66cf7044000007", "content_type_id"=>"51af20451e66cf7044000007", "_slug"=>"hidden", "site_id"=>"51af20451e66cf7044000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 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::ContentEntry51af20451e66cf7044000007", "_original_id"=>"51af20451e66cf704400000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20451e66cf704400000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af20451e66cf7044000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20451e66cf7044000007", "_original_id"=>"51af20451e66cf704400000c", "_keywords"=>["hidden"]}] flags=[] (0.1140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20451e66cf7044000002", "parent_id"=>"51af20451e66cf7044000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6320ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af20451e66cf7044000004", "site_id"=>"51af20451e66cf7044000002", "_id"=>{"$ne"=>"51af20451e66cf704400000e"}}} (0.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20451e66cf7044000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6509ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20451e66cf704400000e", "parent_ids"=>["51af20451e66cf7044000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20451e66cf7044000002", "parent_id"=>"51af20451e66cf7044000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20451e66cf7044000002", "template_dependencies.en"=>{"$in"=>["51af20451e66cf704400000e"]}}, "$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"=>"51af20451e66cf704400000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20451e66cf704400000e"]}} 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"=>"51af20451e66cf704400000e"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af20451e66cf704400000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af20451e66cf7044000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20451e66cf704400000e", "_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.5999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20451e66cf7044000002", "parent_id"=>"51af20451e66cf7044000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5667ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af20451e66cf7044000004", "site_id"=>"51af20451e66cf7044000002", "_id"=>{"$ne"=>"51af20451e66cf7044000010"}}} (0.3998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20451e66cf7044000004", "site_id"=>"51af20451e66cf7044000002", "_id"=>{"$ne"=>"51af20451e66cf7044000010"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20451e66cf7044000004", "site_id"=>"51af20451e66cf7044000002", "_id"=>{"$ne"=>"51af20451e66cf7044000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20451e66cf7044000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20451e66cf7044000010", "parent_ids"=>["51af20451e66cf7044000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20451e66cf7044000002", "parent_id"=>"51af20451e66cf7044000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC}] flags=[] (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20451e66cf7044000002", "template_dependencies.en"=>{"$in"=>["51af20451e66cf7044000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4737ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20451e66cf7044000010"}, "$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"=>["51af20451e66cf7044000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20451e66cf7044000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20451e66cf7044000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af20451e66cf7044000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20451e66cf7044000010", "_keywords"=>["en:search"]}] flags=[] (0.1123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20451e66cf7044000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"51af20451e66cf7044000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af20451e66cf7044000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:25:57 UTC}} flags=[] (0.1111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20451e66cf7044000002", "template_dependencies.en"=>{"$in"=>["51af20451e66cf7044000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20451e66cf7044000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af20451e66cf7044000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20451e66cf7044000002"}}} flags=[] (0.1142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} 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_sites documents=[{"_id"=>"51af20451e66cf7044000012", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:25:57 UTC, "updated_at"=>2013-06-05 11:25:57 UTC, "memberships"=>[{"_id"=>"51af20451e66cf7044000013", "role"=>"admin", "account_id"=>"51af20451e66cf7044000001"}]}] flags=[] (0.1340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20451e66cf7044000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3667ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20451e66cf7044000012", "_id"=>{"$ne"=>"51af20451e66cf7044000014"}}} (0.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20451e66cf7044000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20451e66cf7044000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20451e66cf7044000012", "template_dependencies.en"=>{"$in"=>["51af20451e66cf7044000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20451e66cf7044000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3033ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20451e66cf7044000014"]}} 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"=>"51af20451e66cf7044000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20451e66cf7044000015", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20451e66cf7044000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20451e66cf7044000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20451e66cf7044000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20451e66cf7044000012", "_id"=>{"$ne"=>"51af20451e66cf7044000016"}}} (0.3698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20451e66cf7044000012", "_id"=>{"$ne"=>"51af20451e66cf7044000016"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>nil, "site_id"=>"51af20451e66cf7044000012", "_id"=>{"$ne"=>"51af20451e66cf7044000016"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20451e66cf7044000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20451e66cf7044000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20451e66cf7044000012", "template_dependencies.en"=>{"$in"=>["51af20451e66cf7044000016"]}}, "$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"=>"51af20451e66cf7044000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3202ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20451e66cf7044000016"]}} 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"=>"51af20451e66cf7044000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5839ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20451e66cf7044000012", "_id"=>{"$ne"=>"51af20451e66cf7044000017"}}} (0.6418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20451e66cf7044000012", "_id"=>{"$ne"=>"51af20451e66cf7044000017"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"51af20451e66cf7044000012", "_id"=>{"$ne"=>"51af20451e66cf7044000017"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4706ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20451e66cf7044000017", "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"=>"51af20451e66cf7044000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20451e66cf7044000012", "template_dependencies.en"=>{"$in"=>["51af20451e66cf7044000017"]}}, "$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"=>"51af20451e66cf7044000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20451e66cf7044000017"]}} 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"=>"51af20451e66cf7044000017"}, "$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"=>"51af20451e66cf7044000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af20451e66cf7044000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20451e66cf7044000017", "_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.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af20451e66cf7044000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6402ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20451e66cf7044000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20451e66cf7044000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20451e66cf704400001a", "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 UTC, "entries_custom_fields"=>[{"_id"=>"51af20451e66cf704400001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20451e66cf704400001b"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20451e66cf7044000019"]}} 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"=>"51af20451e66cf7044000019", "_slug"=>"not-findable-entry"} 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::ContentEntry51af20451e66cf7044000019"]}}} (0.5829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20451e66cf704400001b", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20451e66cf7044000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20451e66cf7044000019", "content_type_id"=>"51af20451e66cf7044000019", "_slug"=>"not-findable-entry", "site_id"=>"51af20451e66cf7044000012", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:57 UTC, "created_at"=>2013-06-05 11:25:57 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::ContentEntry51af20451e66cf7044000019", "_original_id"=>"51af20451e66cf704400001b"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af20451e66cf704400001c", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af20451e66cf7044000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20451e66cf7044000019", "_original_id"=>"51af20451e66cf704400001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1338ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:25:57 +0200 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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"} (0.9570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.0350ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8287ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4988ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2780ms) Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5159ms) [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2811ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_accounts", :query=>{}} (0.5329ms) Redirected to http://test.example.com/locomotive/installation Filter chain halted as :require_site rendered or redirected Completed 302 Found in 4ms Started GET "/locomotive/installation" for 127.0.0.1 at 2013-06-05 13:25:58 +0200 Processing by Locomotive::InstallationController#show as HTML Parameters: {"step"=>1} MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4528ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{}} (0.4449ms) Rendered /usr/local/lib/ruby/gems/1.9.1/gems/locomotive_cms-2.1.0/app/views/locomotive/installation/step_1.html.haml within /locomotive/layouts/not_logged_in (31.2ms) Completed 200 OK in 106ms (Views: 104.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.4380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af20461e66cf704400001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"18049db889f98dc3ca78fd626044ad8fc0d0b023", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"z53MPdjSgWDqxoyeATQf", "api_key"=>"5602eb291baa93e4d49309f682f3b304f72c452d", "updated_at"=>2013-06-05 11:25:58 UTC, "created_at"=>2013-06-05 11:25:58 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.4568ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20461e66cf704400001e", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:25:57 UTC, "updated_at"=>2013-06-05 11:25:58 UTC, "memberships"=>[{"_id"=>"51af20461e66cf704400001f", "role"=>"admin", "account_id"=>"51af20461e66cf704400001d"}]}] flags=[] (0.1471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20461e66cf704400001e", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20461e66cf704400001e", "_id"=>{"$ne"=>"51af20461e66cf7044000020"}}} (0.3810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20461e66cf7044000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20461e66cf704400001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:58 UTC, "created_at"=>2013-06-05 11:25:58 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20461e66cf704400001e", "template_dependencies.en"=>{"$in"=>["51af20461e66cf7044000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (6.4011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20461e66cf7044000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20461e66cf7044000020"]}} 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"=>"51af20461e66cf7044000020"}, "$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"=>"51af20461e66cf7044000021", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20461e66cf704400001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20461e66cf7044000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20461e66cf704400001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3061ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20461e66cf704400001e", "_id"=>{"$ne"=>"51af20461e66cf7044000022"}}} (0.3428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20461e66cf704400001e", "_id"=>{"$ne"=>"51af20461e66cf7044000022"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20461e66cf704400001e", "_id"=>{"$ne"=>"51af20461e66cf7044000022"}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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"=>"51af20461e66cf7044000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20461e66cf704400001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:58 UTC, "created_at"=>2013-06-05 11:25:58 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20461e66cf704400001e", "template_dependencies.en"=>{"$in"=>["51af20461e66cf7044000022"]}}, "$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_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20461e66cf7044000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2968ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20461e66cf7044000022"]}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4299ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4227ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4241ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4034ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af20461e66cf704400001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3681ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20461e66cf7044000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20461e66cf704400001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20461e66cf7044000024", "updated_at"=>2013-06-05 11:25:58 UTC, "created_at"=>2013-06-05 11:25:58 UTC, "entries_custom_fields"=>[{"_id"=>"51af20461e66cf7044000024", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af20461e66cf7044000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af20461e66cf7044000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:25:58 UTC, "created_at"=>2013-06-05 11:25:58 UTC}}} flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20461e66cf7044000026"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20461e66cf7044000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20461e66cf7044000023", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20461e66cf7044000023"]}}} (0.4251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20461e66cf7044000026", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20461e66cf7044000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20461e66cf7044000023", "content_type_id"=>"51af20461e66cf7044000023", "_slug"=>"findable-entry", "site_id"=>"51af20461e66cf704400001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:58 UTC, "created_at"=>2013-06-05 11:25:58 UTC}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20461e66cf7044000023", "_original_id"=>"51af20461e66cf7044000026"}, "$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"=>"51af20461e66cf7044000027", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af20461e66cf704400001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20461e66cf7044000023", "_original_id"=>"51af20461e66cf7044000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20461e66cf7044000028"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20461e66cf7044000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20461e66cf7044000023", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20461e66cf7044000023"]}}} (0.4778ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20461e66cf7044000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20461e66cf7044000028", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20461e66cf7044000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20461e66cf7044000023", "content_type_id"=>"51af20461e66cf7044000023", "_slug"=>"hidden", "site_id"=>"51af20461e66cf704400001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:25:58 UTC, "created_at"=>2013-06-05 11:25:58 UTC}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20461e66cf7044000023", "_original_id"=>"51af20461e66cf7044000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3698ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20461e66cf7044000029", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af20461e66cf704400001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20461e66cf7044000023", "_original_id"=>"51af20461e66cf7044000028", "_keywords"=>["hidden"]}] flags=[] (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.4148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"subdomain"=>"acme"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"acme"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20461e66cf704400002b", "locales"=>["en"], "domains"=>["acme.example.com"], "name"=>"Acme Website", "subdomain"=>"acme", "created_at"=>2013-06-05 11:25:57 UTC, "updated_at"=>2013-06-05 11:25:58 UTC}] flags=[] (0.1154ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20461e66cf704400002b", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20461e66cf704400002b", "_id"=>{"$ne"=>"51af20461e66cf704400002c"}}} (0.5710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20461e66cf704400002c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20461e66cf704400002b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:58 UTC, "created_at"=>2013-06-05 11:25:58 UTC}] flags=[] (0.1774ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20461e66cf704400002b", "template_dependencies.en"=>{"$in"=>["51af20461e66cf704400002c"]}}, "$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"=>"51af20461e66cf704400002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20461e66cf704400002c"]}} 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"=>"51af20461e66cf704400002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20461e66cf704400002d", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20461e66cf704400002b"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20461e66cf704400002c", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20461e66cf704400002b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20461e66cf704400002b", "_id"=>{"$ne"=>"51af20461e66cf704400002e"}}} (0.5472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20461e66cf704400002b", "_id"=>{"$ne"=>"51af20461e66cf704400002e"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20461e66cf704400002b", "_id"=>{"$ne"=>"51af20461e66cf704400002e"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20461e66cf704400002e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20461e66cf704400002b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:25:58 UTC, "created_at"=>2013-06-05 11:25:58 UTC}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20461e66cf704400002b", "template_dependencies.en"=>{"$in"=>["51af20461e66cf704400002e"]}}, "$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"=>"51af20461e66cf704400002e"}, "$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"=>["51af20461e66cf704400002e"]}} 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"=>"51af20461e66cf704400002b", "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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4869ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.6249ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.6132ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5541ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8919ms) MOPED: 127.0.0.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.5331ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af20541e66cf20df000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"a571b5204856fe0fad4e939e616b7f3fd3847d86", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"CAs2SYWhTzmsL6Dnysvw", "api_key"=>"56f424fcbb6c8409cdd4eeeb71daf3c794665337", "updated_at"=>2013-06-05 11:26:12 UTC, "created_at"=>2013-06-05 11:26:12 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.7832ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20541e66cf20df000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:26:12 UTC, "updated_at"=>2013-06-05 11:26:12 UTC, "memberships"=>[{"_id"=>"51af20541e66cf20df000003", "role"=>"admin", "account_id"=>"51af20541e66cf20df000001"}]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20541e66cf20df000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20541e66cf20df000002", "_id"=>{"$ne"=>"51af20551e66cf20df000004"}}} (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20551e66cf20df000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20541e66cf20df000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:13 UTC, "created_at"=>2013-06-05 11:26:13 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20551e66cf20df000004"}, "$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"=>{"site_id"=>"51af20541e66cf20df000002", "template_dependencies.en"=>{"$in"=>["51af20551e66cf20df000004"]}}, "$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"=>["51af20551e66cf20df000004"]}} 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"=>"51af20541e66cf20df000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6711ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20541e66cf20df000002", "_id"=>{"$ne"=>"51af20551e66cf20df000005"}}} (0.7610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20541e66cf20df000002", "_id"=>{"$ne"=>"51af20551e66cf20df000005"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20541e66cf20df000002", "_id"=>{"$ne"=>"51af20551e66cf20df000005"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6409ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20551e66cf20df000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20541e66cf20df000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:13 UTC, "created_at"=>2013-06-05 11:26:13 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20541e66cf20df000002", "template_dependencies.en"=>{"$in"=>["51af20551e66cf20df000005"]}}, "$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"=>"51af20551e66cf20df000005"}, "$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"=>["51af20551e66cf20df000005"]}} 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"=>"51af20541e66cf20df000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20551e66cf20df000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20541e66cf20df000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20551e66cf20df000007", "updated_at"=>2013-06-05 11:26:13 UTC, "created_at"=>2013-06-05 11:26:13 UTC, "entries_custom_fields"=>[{"_id"=>"51af20551e66cf20df000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af20551e66cf20df000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af20551e66cf20df000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:26:13 UTC, "created_at"=>2013-06-05 11:26:13 UTC}}} flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20551e66cf20df000009"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20551e66cf20df000006"]}} 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_content_entries selector={"content_type_id"=>"51af20551e66cf20df000006", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3340ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20551e66cf20df000006"]}}} (0.3250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20551e66cf20df000009", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20551e66cf20df000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20551e66cf20df000006", "content_type_id"=>"51af20551e66cf20df000006", "_slug"=>"findable-entry", "site_id"=>"51af20541e66cf20df000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:13 UTC, "created_at"=>2013-06-05 11:26:13 UTC}] flags=[] (0.1647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20551e66cf20df00000a"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20551e66cf20df000006"]}} 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"=>"51af20551e66cf20df000006", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3042ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20551e66cf20df000006"]}}} (0.3870ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20551e66cf20df000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4871ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20551e66cf20df00000a", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20551e66cf20df000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20551e66cf20df000006", "content_type_id"=>"51af20551e66cf20df000006", "_slug"=>"hidden", "site_id"=>"51af20541e66cf20df000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:13 UTC, "created_at"=>2013-06-05 11:26:13 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.9918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20541e66cf20df000002", "parent_id"=>"51af20551e66cf20df000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af20551e66cf20df000004", "site_id"=>"51af20541e66cf20df000002", "_id"=>{"$ne"=>"51af20561e66cf20df00000b"}}} (0.5050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20551e66cf20df000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20561e66cf20df00000b", "parent_ids"=>["51af20551e66cf20df000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20541e66cf20df000002", "parent_id"=>"51af20551e66cf20df000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:14 UTC, "created_at"=>2013-06-05 11:26:14 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20541e66cf20df000002", "template_dependencies.en"=>{"$in"=>["51af20561e66cf20df00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20561e66cf20df00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2420ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20561e66cf20df00000b"]}} 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.6757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20541e66cf20df000002", "parent_id"=>"51af20551e66cf20df000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af20551e66cf20df000004", "site_id"=>"51af20541e66cf20df000002", "_id"=>{"$ne"=>"51af20561e66cf20df00000c"}}} (0.3862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20551e66cf20df000004", "site_id"=>"51af20541e66cf20df000002", "_id"=>{"$ne"=>"51af20561e66cf20df00000c"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20551e66cf20df000004", "site_id"=>"51af20541e66cf20df000002", "_id"=>{"$ne"=>"51af20561e66cf20df00000c"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20551e66cf20df000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4396ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20561e66cf20df00000c", "parent_ids"=>["51af20551e66cf20df000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20541e66cf20df000002", "parent_id"=>"51af20551e66cf20df000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:14 UTC, "created_at"=>2013-06-05 11:26:14 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20541e66cf20df000002", "template_dependencies.en"=>{"$in"=>["51af20561e66cf20df00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20561e66cf20df00000c"}, "$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"=>["51af20561e66cf20df00000c"]}} 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"=>{"site_id"=>"51af20541e66cf20df000002", "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_sites selector={"$query"=>{"_id"=>"51af20541e66cf20df000002"}, "$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"=>"51af20551e66cf20df000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:26:15 UTC}} flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20541e66cf20df000002", "template_dependencies.en"=>{"$in"=>["51af20551e66cf20df000004"]}}, "$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.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} 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_sites documents=[{"_id"=>"51af20571e66cf20df00000d", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:26:12 UTC, "updated_at"=>2013-06-05 11:26:15 UTC, "memberships"=>[{"_id"=>"51af20571e66cf20df00000e", "role"=>"admin", "account_id"=>"51af20541e66cf20df000001"}]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20571e66cf20df00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20571e66cf20df00000d", "_id"=>{"$ne"=>"51af20571e66cf20df00000f"}}} (0.4630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20571e66cf20df00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20571e66cf20df00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:15 UTC, "created_at"=>2013-06-05 11:26:15 UTC}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20571e66cf20df00000d", "template_dependencies.en"=>{"$in"=>["51af20571e66cf20df00000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20571e66cf20df00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2298ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20571e66cf20df00000f"]}} 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"=>"51af20571e66cf20df00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4780ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20571e66cf20df00000d", "_id"=>{"$ne"=>"51af20571e66cf20df000010"}}} (0.4570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20571e66cf20df00000d", "_id"=>{"$ne"=>"51af20571e66cf20df000010"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20571e66cf20df00000d", "_id"=>{"$ne"=>"51af20571e66cf20df000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20571e66cf20df000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20571e66cf20df00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:15 UTC, "created_at"=>2013-06-05 11:26:15 UTC}] flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20571e66cf20df00000d", "template_dependencies.en"=>{"$in"=>["51af20571e66cf20df000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20571e66cf20df000010"}, "$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"=>["51af20571e66cf20df000010"]}} 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"=>"51af20571e66cf20df00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20571e66cf20df00000d", "_id"=>{"$ne"=>"51af20571e66cf20df000011"}}} (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20571e66cf20df00000d", "_id"=>{"$ne"=>"51af20571e66cf20df000011"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20571e66cf20df00000d", "_id"=>{"$ne"=>"51af20571e66cf20df000011"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2263ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20571e66cf20df000011", "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"=>"51af20571e66cf20df00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:15 UTC, "created_at"=>2013-06-05 11:26:15 UTC}] flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20571e66cf20df00000d", "template_dependencies.en"=>{"$in"=>["51af20571e66cf20df000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20571e66cf20df000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20571e66cf20df000011"]}} 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"=>"51af20571e66cf20df00000d", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af20581e66cf20df000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20571e66cf20df00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20581e66cf20df000013", "updated_at"=>2013-06-05 11:26:16 UTC, "created_at"=>2013-06-05 11:26:16 UTC, "entries_custom_fields"=>[{"_id"=>"51af20581e66cf20df000013", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20581e66cf20df000014"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20581e66cf20df000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20581e66cf20df000012", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2871ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20581e66cf20df000012"]}}} (0.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20581e66cf20df000014", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20581e66cf20df000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20581e66cf20df000012", "content_type_id"=>"51af20581e66cf20df000012", "_slug"=>"not-findable-entry", "site_id"=>"51af20571e66cf20df00000d", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:16 UTC, "created_at"=>2013-06-05 11:26:16 UTC}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20551e66cf20df000009"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20551e66cf20df000006"]}} 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"=>"51af20551e66cf20df00000a"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20551e66cf20df000006"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af20551e66cf20df000006"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1180ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20551e66cf20df000006"} update={"$set"=>{"updated_at"=>2013-06-05 11:26:16 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20551e66cf20df000006"} 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-06-05 13:26:16 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20541e66cf20df000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8140ms) Rendered text template (0.0ms) Completed 200 OK in 78ms (Views: 73.1ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:26:16 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20541e66cf20df000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6449ms) Rendered text template (0.0ms) Completed 200 OK in 197ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20551e66cf20df000006"} 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"=>"51af20551e66cf20df000006", "updated_at"=>{"$lt"=>2013-06-05 11:26:16 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af20551e66cf20df000006"]}} 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_sites selector={"$query"=>{"_id"=>"51af20541e66cf20df000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af20551e66cf20df000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af20551e66cf20df000009"} update={"$set"=>{"updated_at"=>2013-06-05 11:26:17 UTC}} flags=[] (0.1009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20541e66cf20df000002"}, "$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_content_types selector={"$query"=>{"_id"=>"51af20551e66cf20df000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af20551e66cf20df00000a"} update={"$set"=>{"updated_at"=>2013-06-05 11:26:17 UTC}} flags=[] (0.1049ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:26:17 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:26:17 +0200 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.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20541e66cf20df000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6239ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:26:17 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20541e66cf20df000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) Rendered text template (0.0ms) Completed 200 OK in 190ms (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.5260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1961ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2269ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1969ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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.8810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3421ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af205a1e66cf20df000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"50427de19683453eba749c1613c17e76079b9c60", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"2zJuenjai4Zq8MQuizFN", "api_key"=>"803093ac7c99c2f19be2b455b66fb3393f878132", "updated_at"=>2013-06-05 11:26:18 UTC, "created_at"=>2013-06-05 11:26:18 UTC}] flags=[] (0.1130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af205a1e66cf20df000016", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:26:12 UTC, "updated_at"=>2013-06-05 11:26:18 UTC, "memberships"=>[{"_id"=>"51af205a1e66cf20df000017", "role"=>"admin", "account_id"=>"51af205a1e66cf20df000015"}]}] flags=[] (0.1221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af205a1e66cf20df000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af205a1e66cf20df000016", "_id"=>{"$ne"=>"51af205a1e66cf20df000018"}}} (0.3312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af205a1e66cf20df000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af205a1e66cf20df000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:18 UTC, "created_at"=>2013-06-05 11:26:18 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205a1e66cf20df000016", "template_dependencies.en"=>{"$in"=>["51af205a1e66cf20df000018"]}}, "$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"=>"51af205a1e66cf20df000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af205a1e66cf20df000018"]}} 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"=>"51af205a1e66cf20df000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af205a1e66cf20df000016", "_id"=>{"$ne"=>"51af205a1e66cf20df000019"}}} (0.7470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af205a1e66cf20df000016", "_id"=>{"$ne"=>"51af205a1e66cf20df000019"}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af205a1e66cf20df000016", "_id"=>{"$ne"=>"51af205a1e66cf20df000019"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af205a1e66cf20df000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af205a1e66cf20df000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:18 UTC, "created_at"=>2013-06-05 11:26:18 UTC}] flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205a1e66cf20df000016", "template_dependencies.en"=>{"$in"=>["51af205a1e66cf20df000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"51af205a1e66cf20df000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af205a1e66cf20df000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af205a1e66cf20df000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9451ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af205a1e66cf20df00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af205a1e66cf20df000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af205a1e66cf20df00001b", "updated_at"=>2013-06-05 11:26:18 UTC, "created_at"=>2013-06-05 11:26:18 UTC, "entries_custom_fields"=>[{"_id"=>"51af205a1e66cf20df00001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1452ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af205a1e66cf20df00001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af205a1e66cf20df00001c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:26:18 UTC, "created_at"=>2013-06-05 11:26:18 UTC}}} flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af205a1e66cf20df00001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af205a1e66cf20df00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af205a1e66cf20df00001a", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2918ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af205a1e66cf20df00001a"]}}} (0.4740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af205a1e66cf20df00001d", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af205a1e66cf20df00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af205a1e66cf20df00001a", "content_type_id"=>"51af205a1e66cf20df00001a", "_slug"=>"findable-entry", "site_id"=>"51af205a1e66cf20df000016", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:18 UTC, "created_at"=>2013-06-05 11:26:18 UTC}] flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af205b1e66cf20df00001e"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af205a1e66cf20df00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af205a1e66cf20df00001a", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3638ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af205a1e66cf20df00001a"]}}} (0.3293ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af205a1e66cf20df00001a"]}, "_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"=>"51af205b1e66cf20df00001e", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af205a1e66cf20df00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af205a1e66cf20df00001a", "content_type_id"=>"51af205a1e66cf20df00001a", "_slug"=>"hidden", "site_id"=>"51af205a1e66cf20df000016", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:19 UTC, "created_at"=>2013-06-05 11:26:19 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.8779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af205a1e66cf20df000016", "parent_id"=>"51af205a1e66cf20df000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af205a1e66cf20df000018", "site_id"=>"51af205a1e66cf20df000016", "_id"=>{"$ne"=>"51af205b1e66cf20df00001f"}}} (0.4058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af205a1e66cf20df000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4852ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af205b1e66cf20df00001f", "parent_ids"=>["51af205a1e66cf20df000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af205a1e66cf20df000016", "parent_id"=>"51af205a1e66cf20df000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:19 UTC, "created_at"=>2013-06-05 11:26:19 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205a1e66cf20df000016", "template_dependencies.en"=>{"$in"=>["51af205b1e66cf20df00001f"]}}, "$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"=>"51af205b1e66cf20df00001f"}, "$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"=>["51af205b1e66cf20df00001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af205a1e66cf20df000016", "parent_id"=>"51af205a1e66cf20df000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4551ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af205a1e66cf20df000018", "site_id"=>"51af205a1e66cf20df000016", "_id"=>{"$ne"=>"51af205b1e66cf20df000020"}}} (0.5467ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af205a1e66cf20df000018", "site_id"=>"51af205a1e66cf20df000016", "_id"=>{"$ne"=>"51af205b1e66cf20df000020"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af205a1e66cf20df000018", "site_id"=>"51af205a1e66cf20df000016", "_id"=>{"$ne"=>"51af205b1e66cf20df000020"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af205a1e66cf20df000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4032ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af205b1e66cf20df000020", "parent_ids"=>["51af205a1e66cf20df000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af205a1e66cf20df000016", "parent_id"=>"51af205a1e66cf20df000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:19 UTC, "created_at"=>2013-06-05 11:26:19 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205a1e66cf20df000016", "template_dependencies.en"=>{"$in"=>["51af205b1e66cf20df000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af205b1e66cf20df000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4218ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af205b1e66cf20df000020"]}} 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"=>{"site_id"=>"51af205a1e66cf20df000016", "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_sites selector={"$query"=>{"_id"=>"51af205a1e66cf20df000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af205a1e66cf20df000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:26:20 UTC}} flags=[] (0.1140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205a1e66cf20df000016", "template_dependencies.en"=>{"$in"=>["51af205a1e66cf20df000018"]}}, "$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=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6008ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af205c1e66cf20df000021", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:26:12 UTC, "updated_at"=>2013-06-05 11:26:20 UTC, "memberships"=>[{"_id"=>"51af205c1e66cf20df000022", "role"=>"admin", "account_id"=>"51af205a1e66cf20df000015"}]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af205c1e66cf20df000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af205c1e66cf20df000021", "_id"=>{"$ne"=>"51af205c1e66cf20df000023"}}} (0.5300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af205c1e66cf20df000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af205c1e66cf20df000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:20 UTC, "created_at"=>2013-06-05 11:26:20 UTC}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205c1e66cf20df000021", "template_dependencies.en"=>{"$in"=>["51af205c1e66cf20df000023"]}}, "$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"=>"51af205c1e66cf20df000023"}, "$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"=>["51af205c1e66cf20df000023"]}} 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"=>"51af205c1e66cf20df000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af205c1e66cf20df000021", "_id"=>{"$ne"=>"51af205c1e66cf20df000024"}}} (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af205c1e66cf20df000021", "_id"=>{"$ne"=>"51af205c1e66cf20df000024"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af205c1e66cf20df000021", "_id"=>{"$ne"=>"51af205c1e66cf20df000024"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"51af205c1e66cf20df000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af205c1e66cf20df000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:20 UTC, "created_at"=>2013-06-05 11:26:20 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205c1e66cf20df000021", "template_dependencies.en"=>{"$in"=>["51af205c1e66cf20df000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af205c1e66cf20df000024"}, "$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"=>["51af205c1e66cf20df000024"]}} 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"=>"51af205c1e66cf20df000021", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af205c1e66cf20df000021", "_id"=>{"$ne"=>"51af205c1e66cf20df000025"}}} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af205c1e66cf20df000021", "_id"=>{"$ne"=>"51af205c1e66cf20df000025"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af205c1e66cf20df000021", "_id"=>{"$ne"=>"51af205c1e66cf20df000025"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.1690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af205c1e66cf20df000025", "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"=>"51af205c1e66cf20df000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:20 UTC, "created_at"=>2013-06-05 11:26:20 UTC}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205c1e66cf20df000021", "template_dependencies.en"=>{"$in"=>["51af205c1e66cf20df000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af205c1e66cf20df000025"}, "$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"=>["51af205c1e66cf20df000025"]}} 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"=>"51af205c1e66cf20df000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6118ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af205d1e66cf20df000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af205c1e66cf20df000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af205d1e66cf20df000027", "updated_at"=>2013-06-05 11:26:21 UTC, "created_at"=>2013-06-05 11:26:21 UTC, "entries_custom_fields"=>[{"_id"=>"51af205d1e66cf20df000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af205d1e66cf20df000028"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af205d1e66cf20df000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af205d1e66cf20df000026", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af205d1e66cf20df000026"]}}} (0.3221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af205d1e66cf20df000028", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af205d1e66cf20df000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af205d1e66cf20df000026", "content_type_id"=>"51af205d1e66cf20df000026", "_slug"=>"not-findable-entry", "site_id"=>"51af205c1e66cf20df000021", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:21 UTC, "created_at"=>2013-06-05 11:26:21 UTC}] flags=[] (0.1371ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:26:21 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205a1e66cf20df000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 4ms (Views: 0.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:26:21 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205a1e66cf20df000016", "depth"=>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 190ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:26:21 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205a1e66cf20df000016", "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.5662ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:26:21 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205a1e66cf20df000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4869ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:26:21 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af205a1e66cf20df000016", "depth"=>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 187ms (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.5310ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3881ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.0729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1320ms) 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"} (0.8893ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8080ms) MOPED: 127.0.0.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.4911ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_accounts selector={"email"=>"admin@locomotiveapp.org"} 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_accounts documents=[{"_id"=>"51af20691e66cf0375000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"be680ed54e2a45ff6182fc65d11fc7d16f3ff376", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"3pfx9Gf6imXWHWU8fy2A", "api_key"=>"7553fbf8d5edfedef0f7d2c70fd720fcf0c74537", "updated_at"=>2013-06-05 11:26:33 UTC, "created_at"=>2013-06-05 11:26:33 UTC}] flags=[] (0.1853ms) MOPED: 127.0.0.1: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"=>"51af20691e66cf0375000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:26:33 UTC, "updated_at"=>2013-06-05 11:26:33 UTC, "memberships"=>[{"_id"=>"51af20691e66cf0375000003", "role"=>"admin", "account_id"=>"51af20691e66cf0375000001"}]}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20691e66cf0375000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0509ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20691e66cf0375000002", "_id"=>{"$ne"=>"51af206a1e66cf0375000004"}}} (0.4716ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206a1e66cf0375000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20691e66cf0375000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af206a1e66cf0375000004"}, "$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"=>{"site_id"=>"51af20691e66cf0375000002", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf0375000004"]}}, "$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"=>["51af206a1e66cf0375000004"]}} 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"=>"51af206a1e66cf0375000004"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf0375000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20691e66cf0375000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf0375000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20691e66cf0375000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20691e66cf0375000002", "_id"=>{"$ne"=>"51af206a1e66cf0375000006"}}} (0.4411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20691e66cf0375000002", "_id"=>{"$ne"=>"51af206a1e66cf0375000006"}}, "$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"=>nil, "site_id"=>"51af20691e66cf0375000002", "_id"=>{"$ne"=>"51af206a1e66cf0375000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4668ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206a1e66cf0375000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20691e66cf0375000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20691e66cf0375000002", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf0375000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af206a1e66cf0375000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3552ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af206a1e66cf0375000006"]}} 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"=>"51af20691e66cf0375000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af206a1e66cf0375000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20691e66cf0375000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af206a1e66cf0375000008", "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC, "entries_custom_fields"=>[{"_id"=>"51af206a1e66cf0375000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2508ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af206a1e66cf0375000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af206a1e66cf0375000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}}} flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af206a1e66cf037500000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000007"]}} 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_content_entries selector={"content_type_id"=>"51af206a1e66cf0375000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000007"]}}} (0.3998ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af206a1e66cf037500000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af206a1e66cf0375000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000007", "content_type_id"=>"51af206a1e66cf0375000007", "_slug"=>"findable-entry", "site_id"=>"51af20691e66cf0375000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 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::ContentEntry51af206a1e66cf0375000007", "_original_id"=>"51af206a1e66cf037500000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4618ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf037500000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af20691e66cf0375000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000007", "_original_id"=>"51af206a1e66cf037500000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af206a1e66cf037500000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af206a1e66cf0375000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000007"]}}} (0.4032ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000007"]}, "_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"=>"51af206a1e66cf037500000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af206a1e66cf0375000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000007", "content_type_id"=>"51af206a1e66cf0375000007", "_slug"=>"hidden", "site_id"=>"51af20691e66cf0375000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000007", "_original_id"=>"51af206a1e66cf037500000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3982ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf037500000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af20691e66cf0375000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000007", "_original_id"=>"51af206a1e66cf037500000c", "_keywords"=>["hidden"]}] flags=[] (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.5887ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20691e66cf0375000002", "parent_id"=>"51af206a1e66cf0375000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3541ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af206a1e66cf0375000004", "site_id"=>"51af20691e66cf0375000002", "_id"=>{"$ne"=>"51af206a1e66cf037500000e"}}} (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af206a1e66cf0375000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3958ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206a1e66cf037500000e", "parent_ids"=>["51af206a1e66cf0375000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20691e66cf0375000002", "parent_id"=>"51af206a1e66cf0375000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20691e66cf0375000002", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf037500000e"]}}, "$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"=>"51af206a1e66cf037500000e"}, "$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"=>["51af206a1e66cf037500000e"]}} 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"=>"51af206a1e66cf037500000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf037500000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af20691e66cf0375000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf037500000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20691e66cf0375000002", "parent_id"=>"51af206a1e66cf0375000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af206a1e66cf0375000004", "site_id"=>"51af20691e66cf0375000002", "_id"=>{"$ne"=>"51af206a1e66cf0375000010"}}} (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af206a1e66cf0375000004", "site_id"=>"51af20691e66cf0375000002", "_id"=>{"$ne"=>"51af206a1e66cf0375000010"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af206a1e66cf0375000004", "site_id"=>"51af20691e66cf0375000002", "_id"=>{"$ne"=>"51af206a1e66cf0375000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af206a1e66cf0375000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4468ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206a1e66cf0375000010", "parent_ids"=>["51af206a1e66cf0375000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20691e66cf0375000002", "parent_id"=>"51af206a1e66cf0375000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20691e66cf0375000002", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf0375000010"]}}, "$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"=>"51af206a1e66cf0375000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2918ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af206a1e66cf0375000010"]}} 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"=>"51af206a1e66cf0375000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf0375000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af20691e66cf0375000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf0375000010", "_keywords"=>["en:search"]}] flags=[] (0.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20691e66cf0375000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20691e66cf0375000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af206a1e66cf0375000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:26:34 UTC}} flags=[] (0.0999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20691e66cf0375000002", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf0375000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf0375000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af206a1e66cf0375000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20691e66cf0375000002"}}} flags=[] (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4647ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af206a1e66cf0375000012", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:26:33 UTC, "updated_at"=>2013-06-05 11:26:34 UTC, "memberships"=>[{"_id"=>"51af206a1e66cf0375000013", "role"=>"admin", "account_id"=>"51af20691e66cf0375000001"}]}] flags=[] (0.1428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af206a1e66cf0375000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af206a1e66cf0375000012", "_id"=>{"$ne"=>"51af206a1e66cf0375000014"}}} (0.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206a1e66cf0375000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af206a1e66cf0375000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf0375000012", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf0375000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"51af206a1e66cf0375000014"}, "$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"=>["51af206a1e66cf0375000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf0375000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3338ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf0375000015", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af206a1e66cf0375000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf0375000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af206a1e66cf0375000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af206a1e66cf0375000012", "_id"=>{"$ne"=>"51af206a1e66cf0375000016"}}} (0.3340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af206a1e66cf0375000012", "_id"=>{"$ne"=>"51af206a1e66cf0375000016"}}, "$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"=>nil, "site_id"=>"51af206a1e66cf0375000012", "_id"=>{"$ne"=>"51af206a1e66cf0375000016"}}, "$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"=>"51af206a1e66cf0375000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af206a1e66cf0375000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf0375000012", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf0375000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af206a1e66cf0375000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2530ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af206a1e66cf0375000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af206a1e66cf0375000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5112ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af206a1e66cf0375000012", "_id"=>{"$ne"=>"51af206a1e66cf0375000017"}}} (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af206a1e66cf0375000012", "_id"=>{"$ne"=>"51af206a1e66cf0375000017"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af206a1e66cf0375000012", "_id"=>{"$ne"=>"51af206a1e66cf0375000017"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206a1e66cf0375000017", "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"=>"51af206a1e66cf0375000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf0375000012", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf0375000017"]}}, "$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"=>"51af206a1e66cf0375000017"}, "$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"=>["51af206a1e66cf0375000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf0375000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf0375000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af206a1e66cf0375000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf0375000017", "_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.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af206a1e66cf0375000012", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af206a1e66cf0375000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af206a1e66cf0375000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af206a1e66cf037500001a", "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC, "entries_custom_fields"=>[{"_id"=>"51af206a1e66cf037500001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af206a1e66cf037500001b"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000019"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af206a1e66cf0375000019", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3879ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000019"]}}} (0.3450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af206a1e66cf037500001b", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af206a1e66cf0375000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000019", "content_type_id"=>"51af206a1e66cf0375000019", "_slug"=>"not-findable-entry", "site_id"=>"51af206a1e66cf0375000012", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 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::ContentEntry51af206a1e66cf0375000019", "_original_id"=>"51af206a1e66cf037500001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf037500001c", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af206a1e66cf0375000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000019", "_original_id"=>"51af206a1e66cf037500001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af206a1e66cf037500000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af206a1e66cf037500000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000007"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000007"]}} 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"=>"51af206a1e66cf0375000007"} update={"$set"=>{"updated_at"=>2013-06-05 11:26:34 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0851ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af206a1e66cf0375000007"} 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-06-05 13:26:34 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20691e66cf0375000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8261ms) Rendered text template (0.0ms) Completed 200 OK in 78ms (Views: 73.2ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:26:34 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20691e66cf0375000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$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=active_search_mongoid_models selector={"_stored.site_id"=>"51af20691e66cf0375000002", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af206a1e66cf0375000007"} 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"=>"51af206a1e66cf0375000007", "updated_at"=>{"$lt"=>2013-06-05 11:26:34 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20691e66cf0375000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af206a1e66cf0375000007"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af206a1e66cf037500000a"} update={"$set"=>{"updated_at"=>2013-06-05 11:26:34 UTC}} flags=[] (0.0968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000007", "_original_id"=>"51af206a1e66cf037500000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4098ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af206a1e66cf037500000b"} update={"$set"=>{"_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af20691e66cf0375000002", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20691e66cf0375000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af206a1e66cf0375000007"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5929ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af206a1e66cf037500000c"} update={"$set"=>{"updated_at"=>2013-06-05 11:26:34 UTC}} flags=[] (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000007", "_original_id"=>"51af206a1e66cf037500000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af206a1e66cf037500000d"} update={"$set"=>{"_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af20691e66cf0375000002", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.0980ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:26:34 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:26:34 +0200 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.5529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20691e66cf0375000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7508ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:26:34 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20691e66cf0375000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$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=active_search_mongoid_models selector={"_stored.site_id"=>"51af20691e66cf0375000002", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4802ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5438ms) 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.1640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2171ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.8409ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7548ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3304ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af206a1e66cf037500001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"414211b1189b2c0b3a10b5d7c553a016512bbdca", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"U4DBtdPxM1hLFq4oAC6P", "api_key"=>"1bb2c7605ba8a18468df6dfd1b9c3e71e8873050", "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} 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"=>"51af206a1e66cf037500001e", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:26:33 UTC, "updated_at"=>2013-06-05 11:26:34 UTC, "memberships"=>[{"_id"=>"51af206a1e66cf037500001f", "role"=>"admin", "account_id"=>"51af206a1e66cf037500001d"}]}] flags=[] (0.1352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af206a1e66cf037500001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af206a1e66cf037500001e", "_id"=>{"$ne"=>"51af206a1e66cf0375000020"}}} (0.3119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206a1e66cf0375000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af206a1e66cf037500001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf0375000020"]}}, "$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"=>"51af206a1e66cf0375000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2882ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af206a1e66cf0375000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf0375000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf0375000021", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af206a1e66cf037500001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf0375000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af206a1e66cf037500001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4678ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af206a1e66cf037500001e", "_id"=>{"$ne"=>"51af206a1e66cf0375000022"}}} (0.4218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af206a1e66cf037500001e", "_id"=>{"$ne"=>"51af206a1e66cf0375000022"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af206a1e66cf037500001e", "_id"=>{"$ne"=>"51af206a1e66cf0375000022"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206a1e66cf0375000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af206a1e66cf037500001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf0375000022"]}}, "$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"=>"51af206a1e66cf0375000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af206a1e66cf0375000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af206a1e66cf037500001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7133ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af206a1e66cf0375000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af206a1e66cf037500001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af206a1e66cf0375000024", "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC, "entries_custom_fields"=>[{"_id"=>"51af206a1e66cf0375000024", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af206a1e66cf0375000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af206a1e66cf0375000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}}} flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af206a1e66cf0375000026"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000023"]}} 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_content_entries selector={"content_type_id"=>"51af206a1e66cf0375000023", "_slug"=>"findable-entry"} 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::ContentEntry51af206a1e66cf0375000023"]}}} (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af206a1e66cf0375000026", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af206a1e66cf0375000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000023", "content_type_id"=>"51af206a1e66cf0375000023", "_slug"=>"findable-entry", "site_id"=>"51af206a1e66cf037500001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 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::ContentEntry51af206a1e66cf0375000023", "_original_id"=>"51af206a1e66cf0375000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf0375000027", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af206a1e66cf037500001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000023", "_original_id"=>"51af206a1e66cf0375000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af206a1e66cf0375000028"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af206a1e66cf0375000023", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2642ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000023"]}}} (0.3650ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af206a1e66cf0375000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af206a1e66cf0375000028", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af206a1e66cf0375000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000023", "content_type_id"=>"51af206a1e66cf0375000023", "_slug"=>"hidden", "site_id"=>"51af206a1e66cf037500001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000023", "_original_id"=>"51af206a1e66cf0375000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf0375000029", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af206a1e66cf037500001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af206a1e66cf0375000023", "_original_id"=>"51af206a1e66cf0375000028", "_keywords"=>["hidden"]}] 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.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af206a1e66cf037500001e", "parent_id"=>"51af206a1e66cf0375000020", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af206a1e66cf0375000020", "site_id"=>"51af206a1e66cf037500001e", "_id"=>{"$ne"=>"51af206a1e66cf037500002a"}}} (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af206a1e66cf0375000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206a1e66cf037500002a", "parent_ids"=>["51af206a1e66cf0375000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af206a1e66cf037500001e", "parent_id"=>"51af206a1e66cf0375000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:34 UTC, "created_at"=>2013-06-05 11:26:34 UTC}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf037500002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4573ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af206a1e66cf037500002a"}, "$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"=>["51af206a1e66cf037500002a"]}} 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"=>"51af206a1e66cf037500002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3281ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206a1e66cf037500002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af206a1e66cf037500001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf037500002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test 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"=>"51af206a1e66cf037500001e", "parent_id"=>"51af206a1e66cf0375000020", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af206a1e66cf0375000020", "site_id"=>"51af206a1e66cf037500001e", "_id"=>{"$ne"=>"51af206a1e66cf037500002c"}}} (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af206a1e66cf0375000020", "site_id"=>"51af206a1e66cf037500001e", "_id"=>{"$ne"=>"51af206a1e66cf037500002c"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af206a1e66cf0375000020", "site_id"=>"51af206a1e66cf037500001e", "_id"=>{"$ne"=>"51af206a1e66cf037500002c"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af206a1e66cf0375000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206a1e66cf037500002c", "parent_ids"=>["51af206a1e66cf0375000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af206a1e66cf037500001e", "parent_id"=>"51af206a1e66cf0375000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:35 UTC, "created_at"=>2013-06-05 11:26:35 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf037500002c"]}}, "$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"=>"51af206a1e66cf037500002c"}, "$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"=>["51af206a1e66cf037500002c"]}} 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"=>"51af206a1e66cf037500002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3178ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206b1e66cf037500002d", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af206a1e66cf037500001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf037500002c", "_keywords"=>["en:search"]}] flags=[] (0.1092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af206a1e66cf037500001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4013ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af206a1e66cf0375000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:26:35 UTC}} flags=[] (0.1023ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "template_dependencies.en"=>{"$in"=>["51af206a1e66cf0375000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af206a1e66cf0375000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af206a1e66cf0375000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af206a1e66cf037500001e"}}} flags=[] (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_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"=>"51af206b1e66cf037500002e", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:26:33 UTC, "updated_at"=>2013-06-05 11:26:35 UTC, "memberships"=>[{"_id"=>"51af206b1e66cf037500002f", "role"=>"admin", "account_id"=>"51af206a1e66cf037500001d"}]}] flags=[] (0.1271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af206b1e66cf037500002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af206b1e66cf037500002e", "_id"=>{"$ne"=>"51af206b1e66cf0375000030"}}} (0.6611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af206b1e66cf0375000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af206b1e66cf037500002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:35 UTC, "created_at"=>2013-06-05 11:26:35 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206b1e66cf037500002e", "template_dependencies.en"=>{"$in"=>["51af206b1e66cf0375000030"]}}, "$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"=>"51af206b1e66cf0375000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2820ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af206b1e66cf0375000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af206b1e66cf0375000030"}, "$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"=>"51af206b1e66cf0375000031", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af206b1e66cf037500002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af206b1e66cf0375000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af206b1e66cf037500002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4809ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af206b1e66cf037500002e", "_id"=>{"$ne"=>"51af206b1e66cf0375000032"}}} (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af206b1e66cf037500002e", "_id"=>{"$ne"=>"51af206b1e66cf0375000032"}}, "$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"=>nil, "site_id"=>"51af206b1e66cf037500002e", "_id"=>{"$ne"=>"51af206b1e66cf0375000032"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af206b1e66cf0375000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af206b1e66cf037500002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:35 UTC, "created_at"=>2013-06-05 11:26:35 UTC}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206b1e66cf037500002e", "template_dependencies.en"=>{"$in"=>["51af206b1e66cf0375000032"]}}, "$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"=>"51af206b1e66cf0375000032"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3622ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af206b1e66cf0375000032"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af206b1e66cf037500002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6599ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af206b1e66cf037500002e", "_id"=>{"$ne"=>"51af206b1e66cf0375000033"}}} (0.5887ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af206b1e66cf037500002e", "_id"=>{"$ne"=>"51af206b1e66cf0375000033"}}, "$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"=>nil, "site_id"=>"51af206b1e66cf037500002e", "_id"=>{"$ne"=>"51af206b1e66cf0375000033"}}, "$orderby"=>{"position"=>-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_pages selector={"_id"=>{"$in"=>[]}} 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"=>"51af206b1e66cf0375000033", "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"=>"51af206b1e66cf037500002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:35 UTC, "created_at"=>2013-06-05 11:26:35 UTC}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206b1e66cf037500002e", "template_dependencies.en"=>{"$in"=>["51af206b1e66cf0375000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af206b1e66cf0375000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2820ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af206b1e66cf0375000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af206b1e66cf0375000033"}, "$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"=>"51af206b1e66cf0375000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af206b1e66cf037500002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af206b1e66cf0375000033", "_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"=>"51af206b1e66cf037500002e", "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"=>"51af206b1e66cf0375000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af206b1e66cf037500002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af206b1e66cf0375000036", "updated_at"=>2013-06-05 11:26:35 UTC, "created_at"=>2013-06-05 11:26:35 UTC, "entries_custom_fields"=>[{"_id"=>"51af206b1e66cf0375000036", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af206b1e66cf0375000037"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af206b1e66cf0375000035"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af206b1e66cf0375000035", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af206b1e66cf0375000035"]}}} (0.3479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af206b1e66cf0375000037", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af206b1e66cf0375000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af206b1e66cf0375000035", "content_type_id"=>"51af206b1e66cf0375000035", "_slug"=>"not-findable-entry", "site_id"=>"51af206b1e66cf037500002e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:35 UTC, "created_at"=>2013-06-05 11:26:35 UTC}] flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af206b1e66cf0375000035", "_original_id"=>"51af206b1e66cf0375000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2410ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af206b1e66cf0375000038", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af206b1e66cf037500002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af206b1e66cf0375000035", "_original_id"=>"51af206b1e66cf0375000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1118ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:26:35 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7210ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:26:35 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af206a1e66cf037500001e", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4399ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:26:35 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "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.6421ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:26:35 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5479ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:26:35 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af206a1e66cf037500001e", "depth"=>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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af206a1e66cf037500001e", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4580ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4392ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.3860ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4032ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4683ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5302ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1277ms) MOPED: 127.0.0.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.4909ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8180ms) MOPED: 127.0.0.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.2041ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_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_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af207c1e66cf03fe000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"09d5b43e929ec92abb1b6aadb98ca8566aa4e53a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"foV93Cfgqb61ACksApsk", "api_key"=>"a0a6b3d9fd2c69034ccfe5666345402b6203012a", "updated_at"=>2013-06-05 11:26:52 UTC, "created_at"=>2013-06-05 11:26:52 UTC}] flags=[] (0.1433ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8287ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af207c1e66cf03fe000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:26:52 UTC, "updated_at"=>2013-06-05 11:26:52 UTC, "memberships"=>[{"_id"=>"51af207c1e66cf03fe000003", "role"=>"admin", "account_id"=>"51af207c1e66cf03fe000001"}]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af207c1e66cf03fe000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9809ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af207c1e66cf03fe000002", "_id"=>{"$ne"=>"51af207d1e66cf03fe000004"}}} (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af207d1e66cf03fe000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af207c1e66cf03fe000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af207d1e66cf03fe000004"}, "$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"=>{"site_id"=>"51af207c1e66cf03fe000002", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000004"]}}, "$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"=>["51af207d1e66cf03fe000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5631ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af207d1e66cf03fe000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af207c1e66cf03fe000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe000004", "_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"=>"51af207c1e66cf03fe000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af207c1e66cf03fe000002", "_id"=>{"$ne"=>"51af207d1e66cf03fe000006"}}} (0.6328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af207c1e66cf03fe000002", "_id"=>{"$ne"=>"51af207d1e66cf03fe000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af207c1e66cf03fe000002", "_id"=>{"$ne"=>"51af207d1e66cf03fe000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"51af207d1e66cf03fe000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af207c1e66cf03fe000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207c1e66cf03fe000002", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af207d1e66cf03fe000006"}, "$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"=>["51af207d1e66cf03fe000006"]}} 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"=>"51af207c1e66cf03fe000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af207d1e66cf03fe000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af207c1e66cf03fe000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af207d1e66cf03fe000008", "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC, "entries_custom_fields"=>[{"_id"=>"51af207d1e66cf03fe000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af207d1e66cf03fe000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af207d1e66cf03fe000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af207d1e66cf03fe00000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af207d1e66cf03fe000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1032ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0509ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe000007"]}}} (0.5157ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af207d1e66cf03fe00000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af207d1e66cf03fe000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe000007", "content_type_id"=>"51af207d1e66cf03fe000007", "_slug"=>"findable-entry", "site_id"=>"51af207c1e66cf03fe000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.8378ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe000007", "_original_id"=>"51af207d1e66cf03fe00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3188ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af207d1e66cf03fe00000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af207c1e66cf03fe000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe000007", "_original_id"=>"51af207d1e66cf03fe00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1199ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af207d1e66cf03fe00000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe000007"]}} 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_content_entries selector={"content_type_id"=>"51af207d1e66cf03fe000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2160ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe000007"]}}} (0.3021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af207d1e66cf03fe00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af207d1e66cf03fe000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe000007", "content_type_id"=>"51af207d1e66cf03fe000007", "_slug"=>"hidden", "site_id"=>"51af207c1e66cf03fe000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1607ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe000007", "_original_id"=>"51af207d1e66cf03fe00000c"}, "$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"=>"51af207d1e66cf03fe00000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af207c1e66cf03fe000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe000007", "_original_id"=>"51af207d1e66cf03fe00000c", "_keywords"=>["hidden"]}] flags=[] (0.1028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"subdomain"=>"acme"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"acme"} 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_sites documents=[{"_id"=>"51af207d1e66cf03fe00000f", "locales"=>["en"], "domains"=>["acme.example.com"], "name"=>"Acme Website", "subdomain"=>"acme", "created_at"=>2013-06-05 11:26:52 UTC, "updated_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af207d1e66cf03fe00000f", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe00000f", "_id"=>{"$ne"=>"51af207d1e66cf03fe000010"}}} (0.3941ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af207d1e66cf03fe000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af207d1e66cf03fe00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe00000f", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000010"]}}, "$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"=>"51af207d1e66cf03fe000010"}, "$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"=>["51af207d1e66cf03fe000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe000010"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af207d1e66cf03fe000011", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af207d1e66cf03fe00000f"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe000010", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af207d1e66cf03fe00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe00000f", "_id"=>{"$ne"=>"51af207d1e66cf03fe000012"}}} (0.4842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe00000f", "_id"=>{"$ne"=>"51af207d1e66cf03fe000012"}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe00000f", "_id"=>{"$ne"=>"51af207d1e66cf03fe000012"}}, "$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"=>"51af207d1e66cf03fe000012", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af207d1e66cf03fe00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe00000f", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000012"]}}, "$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"=>"51af207d1e66cf03fe000012"}, "$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"=>["51af207d1e66cf03fe000012"]}} 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"=>"51af207d1e66cf03fe00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.6161ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5889ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.6049ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2999ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af207d1e66cf03fe000014", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c254e5b7ddb0d0cf4eede165287d040dfb3cec08", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"41zKuTb7hafbs3k9JzaC", "api_key"=>"2aaf593b8d455618b20a5609288f69e8585e0d40", "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af207d1e66cf03fe000015", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:26:52 UTC, "updated_at"=>2013-06-05 11:26:53 UTC, "memberships"=>[{"_id"=>"51af207d1e66cf03fe000016", "role"=>"admin", "account_id"=>"51af207d1e66cf03fe000014"}]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af207d1e66cf03fe000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4158ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000015", "_id"=>{"$ne"=>"51af207d1e66cf03fe000017"}}} (0.2930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af207d1e66cf03fe000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af207d1e66cf03fe000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe000015", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000017"]}}, "$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"=>"51af207d1e66cf03fe000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3109ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af207d1e66cf03fe000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af207d1e66cf03fe000018", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af207d1e66cf03fe000015"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe000017", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af207d1e66cf03fe000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4752ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000015", "_id"=>{"$ne"=>"51af207d1e66cf03fe000019"}}} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000015", "_id"=>{"$ne"=>"51af207d1e66cf03fe000019"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000015", "_id"=>{"$ne"=>"51af207d1e66cf03fe000019"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af207d1e66cf03fe000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af207d1e66cf03fe000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe000015", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af207d1e66cf03fe000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2911ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af207d1e66cf03fe000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af207d1e66cf03fe000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af207d1e66cf03fe00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af207d1e66cf03fe000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af207d1e66cf03fe00001b", "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC, "entries_custom_fields"=>[{"_id"=>"51af207d1e66cf03fe00001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af207d1e66cf03fe00001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af207d1e66cf03fe00001c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}}} flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af207d1e66cf03fe00001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe00001a"]}} 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_content_entries selector={"content_type_id"=>"51af207d1e66cf03fe00001a", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3679ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe00001a"]}}} (0.3321ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af207d1e66cf03fe00001d", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af207d1e66cf03fe00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe00001a", "content_type_id"=>"51af207d1e66cf03fe00001a", "_slug"=>"findable-entry", "site_id"=>"51af207d1e66cf03fe000015", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe00001a", "_original_id"=>"51af207d1e66cf03fe00001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af207d1e66cf03fe00001e", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af207d1e66cf03fe000015", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe00001a", "_original_id"=>"51af207d1e66cf03fe00001d", "_keywords"=>["findable", "entry"]}] flags=[] (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af207d1e66cf03fe00001f"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe00001a"]}} 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_content_entries selector={"content_type_id"=>"51af207d1e66cf03fe00001a", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3281ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe00001a"]}}} (0.2732ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe00001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af207d1e66cf03fe00001f", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af207d1e66cf03fe00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe00001a", "content_type_id"=>"51af207d1e66cf03fe00001a", "_slug"=>"hidden", "site_id"=>"51af207d1e66cf03fe000015", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe00001a", "_original_id"=>"51af207d1e66cf03fe00001f"}, "$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"=>"51af207d1e66cf03fe000020", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af207d1e66cf03fe000015", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe00001a", "_original_id"=>"51af207d1e66cf03fe00001f", "_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.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af207d1e66cf03fe000015", "parent_id"=>"51af207d1e66cf03fe000017", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af207d1e66cf03fe000017", "site_id"=>"51af207d1e66cf03fe000015", "_id"=>{"$ne"=>"51af207d1e66cf03fe000021"}}} (0.5021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af207d1e66cf03fe000017"]}} flags=[:slave_ok] 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"=>"51af207d1e66cf03fe000021", "parent_ids"=>["51af207d1e66cf03fe000017"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af207d1e66cf03fe000015", "parent_id"=>"51af207d1e66cf03fe000017", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe000015", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000021"]}}, "$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"=>"51af207d1e66cf03fe000021"}, "$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"=>["51af207d1e66cf03fe000021"]}} 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"=>"51af207d1e66cf03fe000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3498ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af207d1e66cf03fe000022", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af207d1e66cf03fe000015"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe000021", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.5879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af207d1e66cf03fe000015", "parent_id"=>"51af207d1e66cf03fe000017", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4611ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af207d1e66cf03fe000017", "site_id"=>"51af207d1e66cf03fe000015", "_id"=>{"$ne"=>"51af207d1e66cf03fe000023"}}} (0.6168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af207d1e66cf03fe000017", "site_id"=>"51af207d1e66cf03fe000015", "_id"=>{"$ne"=>"51af207d1e66cf03fe000023"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af207d1e66cf03fe000017", "site_id"=>"51af207d1e66cf03fe000015", "_id"=>{"$ne"=>"51af207d1e66cf03fe000023"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5703ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af207d1e66cf03fe000017"]}} flags=[:slave_ok] 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"=>"51af207d1e66cf03fe000023", "parent_ids"=>["51af207d1e66cf03fe000017"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af207d1e66cf03fe000015", "parent_id"=>"51af207d1e66cf03fe000017", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe000015", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5467ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af207d1e66cf03fe000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af207d1e66cf03fe000023"]}} 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"=>"51af207d1e66cf03fe000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af207d1e66cf03fe000024", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af207d1e66cf03fe000015"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe000023", "_keywords"=>["en:search"]}] flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe000015", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af207d1e66cf03fe000015"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af207d1e66cf03fe000017"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:26:53 UTC}} flags=[] (0.1221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe000015", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af207d1e66cf03fe000018"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af207d1e66cf03fe000015"}}} flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af207d1e66cf03fe000025", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:26:52 UTC, "updated_at"=>2013-06-05 11:26:53 UTC, "memberships"=>[{"_id"=>"51af207d1e66cf03fe000026", "role"=>"admin", "account_id"=>"51af207d1e66cf03fe000014"}]}] flags=[] (0.1442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af207d1e66cf03fe000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000025", "_id"=>{"$ne"=>"51af207d1e66cf03fe000027"}}} (0.6936ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af207d1e66cf03fe000027", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af207d1e66cf03fe000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe000025", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000027"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af207d1e66cf03fe000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2749ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af207d1e66cf03fe000027"]}} 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"=>"51af207d1e66cf03fe000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2229ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af207d1e66cf03fe000028", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af207d1e66cf03fe000025"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe000027", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af207d1e66cf03fe000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000025", "_id"=>{"$ne"=>"51af207d1e66cf03fe000029"}}} (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000025", "_id"=>{"$ne"=>"51af207d1e66cf03fe000029"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000025", "_id"=>{"$ne"=>"51af207d1e66cf03fe000029"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af207d1e66cf03fe000029", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af207d1e66cf03fe000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe000025", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe000029"]}}, "$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"=>"51af207d1e66cf03fe000029"}, "$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"=>["51af207d1e66cf03fe000029"]}} 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"=>"51af207d1e66cf03fe000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000025", "_id"=>{"$ne"=>"51af207d1e66cf03fe00002a"}}} (0.4971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000025", "_id"=>{"$ne"=>"51af207d1e66cf03fe00002a"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af207d1e66cf03fe000025", "_id"=>{"$ne"=>"51af207d1e66cf03fe00002a"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af207d1e66cf03fe00002a", "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"=>"51af207d1e66cf03fe000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af207d1e66cf03fe000025", "template_dependencies.en"=>{"$in"=>["51af207d1e66cf03fe00002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af207d1e66cf03fe00002a"}, "$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"=>["51af207d1e66cf03fe00002a"]}} 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"=>"51af207d1e66cf03fe00002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af207d1e66cf03fe00002b", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af207d1e66cf03fe000025"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af207d1e66cf03fe00002a", "_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.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af207d1e66cf03fe000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3049ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af207d1e66cf03fe00002c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af207d1e66cf03fe000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af207d1e66cf03fe00002d", "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC, "entries_custom_fields"=>[{"_id"=>"51af207d1e66cf03fe00002d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af207d1e66cf03fe00002e"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe00002c"]}} 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_content_entries selector={"content_type_id"=>"51af207d1e66cf03fe00002c", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5140ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af207d1e66cf03fe00002c"]}}} (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af207d1e66cf03fe00002e", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af207d1e66cf03fe00002c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe00002c", "content_type_id"=>"51af207d1e66cf03fe00002c", "_slug"=>"not-findable-entry", "site_id"=>"51af207d1e66cf03fe000025", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:26:53 UTC, "created_at"=>2013-06-05 11:26:53 UTC}] flags=[] (0.1321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe00002c", "_original_id"=>"51af207d1e66cf03fe00002e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af207d1e66cf03fe00002f", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af207d1e66cf03fe000025", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af207d1e66cf03fe00002c", "_original_id"=>"51af207d1e66cf03fe00002e", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8111ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5770ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5078ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4861ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4711ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:26:53 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4909ms) [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2937ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_accounts", :query=>{}} (0.2863ms) Redirected to http://test.example.com/locomotive/installation Filter chain halted as :require_site rendered or redirected Completed 302 Found in 4ms Started GET "/locomotive/installation" for 127.0.0.1 at 2013-06-05 13:26:53 +0200 Processing by Locomotive::InstallationController#show as HTML Parameters: {"step"=>1} MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5288ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{}} (0.3140ms) Rendered /usr/local/lib/ruby/gems/1.9.1/gems/locomotive_cms-2.1.0/app/views/locomotive/installation/step_1.html.haml within /locomotive/layouts/not_logged_in (90.8ms) Completed 200 OK in 172ms (Views: 169.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.3638ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5701ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$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={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af20971e66cf07be000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"df245a83c38861bbb578cb3ac5b2880747f7bdcd", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ZgSzo56qcSLyps1trAMA", "api_key"=>"7a9b963ef6c0f9215721b16a398406992d1cd176", "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 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.8070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20971e66cf07be000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:27:18 UTC, "updated_at"=>2013-06-05 11:27:19 UTC, "memberships"=>[{"_id"=>"51af20971e66cf07be000003", "role"=>"admin", "account_id"=>"51af20971e66cf07be000001"}]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20971e66cf07be000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8168ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000002", "_id"=>{"$ne"=>"51af20971e66cf07be000004"}}} (0.4921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20971e66cf07be000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20971e66cf07be000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20971e66cf07be000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "template_dependencies.en"=>{"$in"=>["51af20971e66cf07be000004"]}}, "$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"=>["51af20971e66cf07be000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20971e66cf07be000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4678ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20971e66cf07be000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20971e66cf07be000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20971e66cf07be000004", "_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"=>"51af20971e66cf07be000002", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000002", "_id"=>{"$ne"=>"51af20971e66cf07be000006"}}} (0.6652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000002", "_id"=>{"$ne"=>"51af20971e66cf07be000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000002", "_id"=>{"$ne"=>"51af20971e66cf07be000006"}}, "$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"=>"51af20971e66cf07be000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20971e66cf07be000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "template_dependencies.en"=>{"$in"=>["51af20971e66cf07be000006"]}}, "$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"=>"51af20971e66cf07be000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3219ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20971e66cf07be000006"]}} 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"=>"51af20971e66cf07be000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6149ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20971e66cf07be000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20971e66cf07be000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20971e66cf07be000008", "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC, "entries_custom_fields"=>[{"_id"=>"51af20971e66cf07be000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"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"=>"51af20971e66cf07be000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af20971e66cf07be000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC}}} flags=[] (0.1867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20971e66cf07be00000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20971e66cf07be000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20971e66cf07be000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20971e66cf07be000007"]}}} (0.3188ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20971e66cf07be00000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20971e66cf07be000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20971e66cf07be000007", "content_type_id"=>"51af20971e66cf07be000007", "_slug"=>"findable-entry", "site_id"=>"51af20971e66cf07be000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20971e66cf07be000007", "_original_id"=>"51af20971e66cf07be00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20971e66cf07be00000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af20971e66cf07be000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20971e66cf07be000007", "_original_id"=>"51af20971e66cf07be00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1163ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20971e66cf07be00000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20971e66cf07be000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20971e66cf07be000007", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2780ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20971e66cf07be000007"]}}} (0.4661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20971e66cf07be000007"]}, "_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"=>"51af20971e66cf07be00000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20971e66cf07be000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20971e66cf07be000007", "content_type_id"=>"51af20971e66cf07be000007", "_slug"=>"hidden", "site_id"=>"51af20971e66cf07be000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 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::ContentEntry51af20971e66cf07be000007", "_original_id"=>"51af20971e66cf07be00000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3502ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20971e66cf07be00000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af20971e66cf07be000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20971e66cf07be000007", "_original_id"=>"51af20971e66cf07be00000c", "_keywords"=>["hidden"]}] flags=[] (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 (0.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20971e66cf07be000002", "parent_id"=>"51af20971e66cf07be000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af20971e66cf07be000004", "site_id"=>"51af20971e66cf07be000002", "_id"=>{"$ne"=>"51af20971e66cf07be00000e"}}} (0.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20971e66cf07be000004"]}} 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"=>"51af20971e66cf07be00000e", "parent_ids"=>["51af20971e66cf07be000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20971e66cf07be000002", "parent_id"=>"51af20971e66cf07be000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC}] flags=[] (0.1657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "template_dependencies.en"=>{"$in"=>["51af20971e66cf07be00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20971e66cf07be00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2708ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20971e66cf07be00000e"]}} 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"=>"51af20971e66cf07be00000e"}, "$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"=>"51af20971e66cf07be00000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af20971e66cf07be000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20971e66cf07be00000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20971e66cf07be000002", "parent_id"=>"51af20971e66cf07be000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af20971e66cf07be000004", "site_id"=>"51af20971e66cf07be000002", "_id"=>{"$ne"=>"51af20971e66cf07be000010"}}} (0.6692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20971e66cf07be000004", "site_id"=>"51af20971e66cf07be000002", "_id"=>{"$ne"=>"51af20971e66cf07be000010"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20971e66cf07be000004", "site_id"=>"51af20971e66cf07be000002", "_id"=>{"$ne"=>"51af20971e66cf07be000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20971e66cf07be000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3459ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20971e66cf07be000010", "parent_ids"=>["51af20971e66cf07be000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20971e66cf07be000002", "parent_id"=>"51af20971e66cf07be000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC}] flags=[] (0.1729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "template_dependencies.en"=>{"$in"=>["51af20971e66cf07be000010"]}}, "$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"=>{"parent_id"=>"51af20971e66cf07be000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20971e66cf07be000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0854ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20971e66cf07be000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6092ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20971e66cf07be000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af20971e66cf07be000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20971e66cf07be000010", "_keywords"=>["en:search"]}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20971e66cf07be000002"}, "$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"=>"51af20971e66cf07be000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:27:19 UTC}} flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "template_dependencies.en"=>{"$in"=>["51af20971e66cf07be000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20971e66cf07be000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3347ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af20971e66cf07be000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20971e66cf07be000002"}}} flags=[] (0.1128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4048ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20971e66cf07be000012", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:27:18 UTC, "updated_at"=>2013-06-05 11:27:19 UTC, "memberships"=>[{"_id"=>"51af20971e66cf07be000013", "role"=>"admin", "account_id"=>"51af20971e66cf07be000001"}]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20971e66cf07be000012", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000012", "_id"=>{"$ne"=>"51af20971e66cf07be000014"}}} (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20971e66cf07be000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20971e66cf07be000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000012", "template_dependencies.en"=>{"$in"=>["51af20971e66cf07be000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20971e66cf07be000014"}, "$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"=>["51af20971e66cf07be000014"]}} 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"=>"51af20971e66cf07be000014"}, "$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"=>"51af20971e66cf07be000015", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20971e66cf07be000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20971e66cf07be000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20971e66cf07be000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3557ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000012", "_id"=>{"$ne"=>"51af20971e66cf07be000016"}}} (0.6981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000012", "_id"=>{"$ne"=>"51af20971e66cf07be000016"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000012", "_id"=>{"$ne"=>"51af20971e66cf07be000016"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af20971e66cf07be000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20971e66cf07be000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000012", "template_dependencies.en"=>{"$in"=>["51af20971e66cf07be000016"]}}, "$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"=>"51af20971e66cf07be000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2770ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20971e66cf07be000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20971e66cf07be000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3908ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000012", "_id"=>{"$ne"=>"51af20971e66cf07be000017"}}} (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000012", "_id"=>{"$ne"=>"51af20971e66cf07be000017"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20971e66cf07be000012", "_id"=>{"$ne"=>"51af20971e66cf07be000017"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20971e66cf07be000017", "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"=>"51af20971e66cf07be000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC}] flags=[] (0.1729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000012", "template_dependencies.en"=>{"$in"=>["51af20971e66cf07be000017"]}}, "$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"=>"51af20971e66cf07be000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20971e66cf07be000017"]}} 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"=>"51af20971e66cf07be000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2208ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20971e66cf07be000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af20971e66cf07be000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20971e66cf07be000017", "_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.1407ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af20971e66cf07be000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20971e66cf07be000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20971e66cf07be000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20971e66cf07be00001a", "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC, "entries_custom_fields"=>[{"_id"=>"51af20971e66cf07be00001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20971e66cf07be00001b"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20971e66cf07be000019"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20971e66cf07be000019", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3512ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20971e66cf07be000019"]}}} (0.3660ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20971e66cf07be00001b", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20971e66cf07be000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20971e66cf07be000019", "content_type_id"=>"51af20971e66cf07be000019", "_slug"=>"not-findable-entry", "site_id"=>"51af20971e66cf07be000012", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:19 UTC, "created_at"=>2013-06-05 11:27:19 UTC}] flags=[] (0.1543ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20971e66cf07be000019", "_original_id"=>"51af20971e66cf07be00001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20971e66cf07be00001c", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af20971e66cf07be000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20971e66cf07be000019", "_original_id"=>"51af20971e66cf07be00001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1190ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:27:19 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6039ms) Rendered text template (0.0ms) Completed 200 OK in 78ms (Views: 73.7ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:27:20 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "depth"=>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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af20971e66cf07be000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5100ms) Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:27:20 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "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.7610ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:27:20 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5629ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:27:20 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20971e66cf07be000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af20971e66cf07be000002", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5360ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6382ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.9358ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1942ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.7927ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.5291ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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.2968ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af20981e66cf07be00001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"496b3d24459d04c2d60182ff4fc10469fa94ba26", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"5yabzrq9YLiy6j5FoyaC", "api_key"=>"f0ac99f31bcc03b17613688f29b799a0036ff4c7", "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}] flags=[] (0.1040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} 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_sites documents=[{"_id"=>"51af20981e66cf07be00001e", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:27:18 UTC, "updated_at"=>2013-06-05 11:27:20 UTC, "memberships"=>[{"_id"=>"51af20981e66cf07be00001f", "role"=>"admin", "account_id"=>"51af20981e66cf07be00001d"}]}] flags=[] (0.1202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20981e66cf07be00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00001e", "_id"=>{"$ne"=>"51af20981e66cf07be000020"}}} (0.3200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20981e66cf07be000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20981e66cf07be00001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00001e", "template_dependencies.en"=>{"$in"=>["51af20981e66cf07be000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20981e66cf07be000020"}, "$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"=>["51af20981e66cf07be000020"]}} 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"=>"51af20981e66cf07be000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20981e66cf07be000021", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20981e66cf07be00001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20981e66cf07be000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20981e66cf07be00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00001e", "_id"=>{"$ne"=>"51af20981e66cf07be000022"}}} (0.4828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00001e", "_id"=>{"$ne"=>"51af20981e66cf07be000022"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00001e", "_id"=>{"$ne"=>"51af20981e66cf07be000022"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20981e66cf07be000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20981e66cf07be00001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}] flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00001e", "template_dependencies.en"=>{"$in"=>["51af20981e66cf07be000022"]}}, "$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"=>"51af20981e66cf07be000022"}, "$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"=>["51af20981e66cf07be000022"]}} 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"=>"51af20981e66cf07be00001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5927ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20981e66cf07be000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20981e66cf07be00001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20981e66cf07be000024", "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC, "entries_custom_fields"=>[{"_id"=>"51af20981e66cf07be000024", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20981e66cf07be000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af20981e66cf07be000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}}} flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20981e66cf07be000026"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20981e66cf07be000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20981e66cf07be000023", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3610ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20981e66cf07be000023"]}}} (0.2823ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20981e66cf07be000026", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20981e66cf07be000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20981e66cf07be000023", "content_type_id"=>"51af20981e66cf07be000023", "_slug"=>"findable-entry", "site_id"=>"51af20981e66cf07be00001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 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::ContentEntry51af20981e66cf07be000023", "_original_id"=>"51af20981e66cf07be000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20981e66cf07be000027", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af20981e66cf07be00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20981e66cf07be000023", "_original_id"=>"51af20981e66cf07be000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20981e66cf07be000028"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20981e66cf07be000023"]}} 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_content_entries selector={"content_type_id"=>"51af20981e66cf07be000023", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20981e66cf07be000023"]}}} (0.3388ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20981e66cf07be000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4959ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20981e66cf07be000028", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20981e66cf07be000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20981e66cf07be000023", "content_type_id"=>"51af20981e66cf07be000023", "_slug"=>"hidden", "site_id"=>"51af20981e66cf07be00001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20981e66cf07be000023", "_original_id"=>"51af20981e66cf07be000028"}, "$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"=>"51af20981e66cf07be000029", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af20981e66cf07be00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20981e66cf07be000023", "_original_id"=>"51af20981e66cf07be000028", "_keywords"=>["hidden"]}] flags=[] (0.0999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20981e66cf07be00001e", "parent_id"=>"51af20981e66cf07be000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3862ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af20981e66cf07be000020", "site_id"=>"51af20981e66cf07be00001e", "_id"=>{"$ne"=>"51af20981e66cf07be00002a"}}} (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20981e66cf07be000020"]}} 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"=>"51af20981e66cf07be00002a", "parent_ids"=>["51af20981e66cf07be000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20981e66cf07be00001e", "parent_id"=>"51af20981e66cf07be000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00001e", "template_dependencies.en"=>{"$in"=>["51af20981e66cf07be00002a"]}}, "$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"=>"51af20981e66cf07be00002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5403ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20981e66cf07be00002a"]}} 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"=>"51af20981e66cf07be00002a"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"51af20981e66cf07be00002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af20981e66cf07be00001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20981e66cf07be00002a", "_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.5670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20981e66cf07be00001e", "parent_id"=>"51af20981e66cf07be000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3629ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af20981e66cf07be000020", "site_id"=>"51af20981e66cf07be00001e", "_id"=>{"$ne"=>"51af20981e66cf07be00002c"}}} (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20981e66cf07be000020", "site_id"=>"51af20981e66cf07be00001e", "_id"=>{"$ne"=>"51af20981e66cf07be00002c"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20981e66cf07be000020", "site_id"=>"51af20981e66cf07be00001e", "_id"=>{"$ne"=>"51af20981e66cf07be00002c"}}, "$orderby"=>{"position"=>-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_pages selector={"_id"=>{"$in"=>["51af20981e66cf07be000020"]}} 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"=>"51af20981e66cf07be00002c", "parent_ids"=>["51af20981e66cf07be000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20981e66cf07be00001e", "parent_id"=>"51af20981e66cf07be000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}] flags=[] (56.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00001e", "template_dependencies.en"=>{"$in"=>["51af20981e66cf07be00002c"]}}, "$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"=>"51af20981e66cf07be00002c"}, "$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"=>["51af20981e66cf07be00002c"]}} 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"=>"51af20981e66cf07be00002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20981e66cf07be00002d", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af20981e66cf07be00001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20981e66cf07be00002c", "_keywords"=>["en:search"]}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00001e", "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"=>"51af20981e66cf07be00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3252ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af20981e66cf07be000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:27:20 UTC}} flags=[] (0.1140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00001e", "template_dependencies.en"=>{"$in"=>["51af20981e66cf07be000020"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20981e66cf07be000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4010ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af20981e66cf07be000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20981e66cf07be00001e"}}} flags=[] (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3273ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20981e66cf07be00002e", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:27:18 UTC, "updated_at"=>2013-06-05 11:27:20 UTC, "memberships"=>[{"_id"=>"51af20981e66cf07be00002f", "role"=>"admin", "account_id"=>"51af20981e66cf07be00001d"}]}] flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20981e66cf07be00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3221ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00002e", "_id"=>{"$ne"=>"51af20981e66cf07be000030"}}} (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20981e66cf07be000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20981e66cf07be00002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00002e", "template_dependencies.en"=>{"$in"=>["51af20981e66cf07be000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20981e66cf07be000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20981e66cf07be000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20981e66cf07be000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20981e66cf07be000031", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af20981e66cf07be00002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20981e66cf07be000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20981e66cf07be00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00002e", "_id"=>{"$ne"=>"51af20981e66cf07be000032"}}} (0.7381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00002e", "_id"=>{"$ne"=>"51af20981e66cf07be000032"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00002e", "_id"=>{"$ne"=>"51af20981e66cf07be000032"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af20981e66cf07be000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20981e66cf07be00002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00002e", "template_dependencies.en"=>{"$in"=>["51af20981e66cf07be000032"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"51af20981e66cf07be000032"}, "$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"=>["51af20981e66cf07be000032"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20981e66cf07be00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00002e", "_id"=>{"$ne"=>"51af20981e66cf07be000033"}}} (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00002e", "_id"=>{"$ne"=>"51af20981e66cf07be000033"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"51af20981e66cf07be00002e", "_id"=>{"$ne"=>"51af20981e66cf07be000033"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20981e66cf07be000033", "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"=>"51af20981e66cf07be00002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}] flags=[] (0.1593ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00002e", "template_dependencies.en"=>{"$in"=>["51af20981e66cf07be000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6506ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20981e66cf07be000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20981e66cf07be000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af20981e66cf07be000033"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af20981e66cf07be000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af20981e66cf07be00002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af20981e66cf07be000033", "_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.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af20981e66cf07be00002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20981e66cf07be000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20981e66cf07be00002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20981e66cf07be000036", "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC, "entries_custom_fields"=>[{"_id"=>"51af20981e66cf07be000036", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20981e66cf07be000037"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20981e66cf07be000035"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20981e66cf07be000035", "_slug"=>"not-findable-entry"} 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::ContentEntry51af20981e66cf07be000035"]}}} (0.5491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20981e66cf07be000037", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20981e66cf07be000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20981e66cf07be000035", "content_type_id"=>"51af20981e66cf07be000035", "_slug"=>"not-findable-entry", "site_id"=>"51af20981e66cf07be00002e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:20 UTC, "created_at"=>2013-06-05 11:27:20 UTC}] flags=[] (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20981e66cf07be000035", "_original_id"=>"51af20981e66cf07be000037"}, "$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"=>"51af20981e66cf07be000038", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af20981e66cf07be00002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af20981e66cf07be000035", "_original_id"=>"51af20981e66cf07be000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20981e66cf07be000026"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20981e66cf07be000023"]}} 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=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20981e66cf07be000028"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20981e66cf07be000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2770ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af20981e66cf07be000023"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20981e66cf07be000023"} update={"$set"=>{"updated_at"=>2013-06-05 11:27:20 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20981e66cf07be000023"} 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.1040ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:27:20 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4170ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:27:20 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af20981e66cf07be00001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2840ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20981e66cf07be000023"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20981e66cf07be000023", "updated_at"=>{"$lt"=>2013-06-05 11:27:20 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af20981e66cf07be000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20981e66cf07be00001e"}, "$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_content_types selector={"$query"=>{"_id"=>"51af20981e66cf07be000023"}, "$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"=>"51af20981e66cf07be000026"} update={"$set"=>{"updated_at"=>2013-06-05 11:27:20 UTC}} flags=[] (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20981e66cf07be000023", "_original_id"=>"51af20981e66cf07be000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4520ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af20981e66cf07be000027"} update={"$set"=>{"_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af20981e66cf07be00001e", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20981e66cf07be00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af20981e66cf07be000023"}, "$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_content_entries selector={"_id"=>"51af20981e66cf07be000028"} update={"$set"=>{"updated_at"=>2013-06-05 11:27:20 UTC}} flags=[] (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af20981e66cf07be000023", "_original_id"=>"51af20981e66cf07be000028"}, "$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"=>"51af20981e66cf07be000029"} update={"$set"=>{"_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af20981e66cf07be00001e", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1040ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:27:20 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:27:20 +0200 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.5178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6301ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:27:20 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20981e66cf07be00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af20981e66cf07be00001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5732ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5598ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5071ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4652ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5441ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5434ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5777ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5083ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af20ab1e66cfffd9000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"41497017e3a249f0eabd17d9d1d5c5c216ed5083", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"qdHVG7XSZWk5Li3ExDGp", "api_key"=>"766be007282c7135d12fd450bbaf7ba46e23b6de", "updated_at"=>2013-06-05 11:27:39 UTC, "created_at"=>2013-06-05 11:27:39 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.6809ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20ab1e66cfffd9000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:27:38 UTC, "updated_at"=>2013-06-05 11:27:39 UTC, "memberships"=>[{"_id"=>"51af20ab1e66cfffd9000003", "role"=>"admin", "account_id"=>"51af20ab1e66cfffd9000001"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20ab1e66cfffd9000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8810ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20ab1e66cfffd9000002", "_id"=>{"$ne"=>"51af20ab1e66cfffd9000004"}}} (0.6690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20ab1e66cfffd9000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20ab1e66cfffd9000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:39 UTC, "created_at"=>2013-06-05 11:27:39 UTC}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20ab1e66cfffd9000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"51af20ab1e66cfffd9000002", "template_dependencies.en"=>{"$in"=>["51af20ab1e66cfffd9000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4473ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20ab1e66cfffd9000004"]}} 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"=>"51af20ab1e66cfffd9000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6318ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20ab1e66cfffd9000002", "_id"=>{"$ne"=>"51af20ac1e66cfffd9000005"}}} (0.4380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20ab1e66cfffd9000002", "_id"=>{"$ne"=>"51af20ac1e66cfffd9000005"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20ab1e66cfffd9000002", "_id"=>{"$ne"=>"51af20ac1e66cfffd9000005"}}, "$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"=>"51af20ac1e66cfffd9000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20ab1e66cfffd9000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:40 UTC, "created_at"=>2013-06-05 11:27:40 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ab1e66cfffd9000002", "template_dependencies.en"=>{"$in"=>["51af20ac1e66cfffd9000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20ac1e66cfffd9000005"}, "$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"=>["51af20ac1e66cfffd9000005"]}} 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"=>"51af20ab1e66cfffd9000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20ac1e66cfffd9000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20ab1e66cfffd9000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20ac1e66cfffd9000007", "updated_at"=>2013-06-05 11:27:40 UTC, "created_at"=>2013-06-05 11:27:40 UTC, "entries_custom_fields"=>[{"_id"=>"51af20ac1e66cfffd9000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.3116ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20ac1e66cfffd9000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af20ac1e66cfffd9000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:27:40 UTC, "created_at"=>2013-06-05 11:27:40 UTC}}} flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20ac1e66cfffd9000009"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20ac1e66cfffd9000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20ac1e66cfffd9000006", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3431ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20ac1e66cfffd9000006"]}}} (0.3779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20ac1e66cfffd9000009", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20ac1e66cfffd9000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20ac1e66cfffd9000006", "content_type_id"=>"51af20ac1e66cfffd9000006", "_slug"=>"findable-entry", "site_id"=>"51af20ab1e66cfffd9000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:40 UTC, "created_at"=>2013-06-05 11:27:40 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20ac1e66cfffd900000a"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20ac1e66cfffd9000006"]}} 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"=>"51af20ac1e66cfffd9000006", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2692ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20ac1e66cfffd9000006"]}}} (0.4270ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20ac1e66cfffd9000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5682ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20ac1e66cfffd900000a", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20ac1e66cfffd9000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20ac1e66cfffd9000006", "content_type_id"=>"51af20ac1e66cfffd9000006", "_slug"=>"hidden", "site_id"=>"51af20ab1e66cfffd9000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:40 UTC, "created_at"=>2013-06-05 11:27:40 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20ab1e66cfffd9000002", "parent_id"=>"51af20ab1e66cfffd9000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4213ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af20ab1e66cfffd9000004", "site_id"=>"51af20ab1e66cfffd9000002", "_id"=>{"$ne"=>"51af20ad1e66cfffd900000b"}}} (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20ab1e66cfffd9000004"]}} flags=[:slave_ok] 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"=>"51af20ad1e66cfffd900000b", "parent_ids"=>["51af20ab1e66cfffd9000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20ab1e66cfffd9000002", "parent_id"=>"51af20ab1e66cfffd9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:41 UTC, "created_at"=>2013-06-05 11:27:41 UTC}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ab1e66cfffd9000002", "template_dependencies.en"=>{"$in"=>["51af20ad1e66cfffd900000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20ad1e66cfffd900000b"}, "$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"=>["51af20ad1e66cfffd900000b"]}} 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.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20ab1e66cfffd9000002", "parent_id"=>"51af20ab1e66cfffd9000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af20ab1e66cfffd9000004", "site_id"=>"51af20ab1e66cfffd9000002", "_id"=>{"$ne"=>"51af20ad1e66cfffd900000c"}}} (0.4177ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20ab1e66cfffd9000004", "site_id"=>"51af20ab1e66cfffd9000002", "_id"=>{"$ne"=>"51af20ad1e66cfffd900000c"}}, "$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"=>"51af20ab1e66cfffd9000004", "site_id"=>"51af20ab1e66cfffd9000002", "_id"=>{"$ne"=>"51af20ad1e66cfffd900000c"}}, "$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={"_id"=>{"$in"=>["51af20ab1e66cfffd9000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20ad1e66cfffd900000c", "parent_ids"=>["51af20ab1e66cfffd9000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20ab1e66cfffd9000002", "parent_id"=>"51af20ab1e66cfffd9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:41 UTC, "created_at"=>2013-06-05 11:27:41 UTC}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ab1e66cfffd9000002", "template_dependencies.en"=>{"$in"=>["51af20ad1e66cfffd900000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20ad1e66cfffd900000c"}, "$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"=>["51af20ad1e66cfffd900000c"]}} 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"=>"51af20ab1e66cfffd9000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20ab1e66cfffd9000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af20ab1e66cfffd9000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:27:42 UTC}} flags=[] (0.1168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ab1e66cfffd9000002", "template_dependencies.en"=>{"$in"=>["51af20ab1e66cfffd9000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20ae1e66cfffd900000d", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:27:38 UTC, "updated_at"=>2013-06-05 11:27:42 UTC, "memberships"=>[{"_id"=>"51af20ae1e66cfffd900000e", "role"=>"admin", "account_id"=>"51af20ab1e66cfffd9000001"}]}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20ae1e66cfffd900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4091ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20ae1e66cfffd900000d", "_id"=>{"$ne"=>"51af20ae1e66cfffd900000f"}}} (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20ae1e66cfffd900000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20ae1e66cfffd900000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:42 UTC, "created_at"=>2013-06-05 11:27:42 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ae1e66cfffd900000d", "template_dependencies.en"=>{"$in"=>["51af20ae1e66cfffd900000f"]}}, "$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"=>"51af20ae1e66cfffd900000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20ae1e66cfffd900000f"]}} 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"=>"51af20ae1e66cfffd900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4692ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20ae1e66cfffd900000d", "_id"=>{"$ne"=>"51af20ae1e66cfffd9000010"}}} (0.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20ae1e66cfffd900000d", "_id"=>{"$ne"=>"51af20ae1e66cfffd9000010"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20ae1e66cfffd900000d", "_id"=>{"$ne"=>"51af20ae1e66cfffd9000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20ae1e66cfffd9000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20ae1e66cfffd900000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:42 UTC, "created_at"=>2013-06-05 11:27:42 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ae1e66cfffd900000d", "template_dependencies.en"=>{"$in"=>["51af20ae1e66cfffd9000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20ae1e66cfffd9000010"}, "$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"=>["51af20ae1e66cfffd9000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20ae1e66cfffd900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4809ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20ae1e66cfffd900000d", "_id"=>{"$ne"=>"51af20ae1e66cfffd9000011"}}} (0.5062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20ae1e66cfffd900000d", "_id"=>{"$ne"=>"51af20ae1e66cfffd9000011"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"51af20ae1e66cfffd900000d", "_id"=>{"$ne"=>"51af20ae1e66cfffd9000011"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3650ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20ae1e66cfffd9000011", "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"=>"51af20ae1e66cfffd900000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:42 UTC, "created_at"=>2013-06-05 11:27:42 UTC}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ae1e66cfffd900000d", "template_dependencies.en"=>{"$in"=>["51af20ae1e66cfffd9000011"]}}, "$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"=>"51af20ae1e66cfffd9000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2859ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20ae1e66cfffd9000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af20ae1e66cfffd900000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20af1e66cfffd9000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20ae1e66cfffd900000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20af1e66cfffd9000013", "updated_at"=>2013-06-05 11:27:43 UTC, "created_at"=>2013-06-05 11:27:43 UTC, "entries_custom_fields"=>[{"_id"=>"51af20af1e66cfffd9000013", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20af1e66cfffd9000014"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20af1e66cfffd9000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20af1e66cfffd9000012", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20af1e66cfffd9000012"]}}} (0.5782ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20af1e66cfffd9000014", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20af1e66cfffd9000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20af1e66cfffd9000012", "content_type_id"=>"51af20af1e66cfffd9000012", "_slug"=>"not-findable-entry", "site_id"=>"51af20ae1e66cfffd900000d", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:43 UTC, "created_at"=>2013-06-05 11:27:43 UTC}] flags=[] (0.1411ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:27:43 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ab1e66cfffd9000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4880ms) Rendered text template (0.0ms) Completed 200 OK in 77ms (Views: 71.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:27:43 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ab1e66cfffd9000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) Rendered text template (0.0ms) Completed 200 OK in 207ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:27:43 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ab1e66cfffd9000002", "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.6058ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:27:43 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ab1e66cfffd9000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:27:43 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20ab1e66cfffd9000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7689ms) Rendered text template (0.0ms) Completed 200 OK in 190ms (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.6130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4400ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4138ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2460ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8471ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2923ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4013ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af20b01e66cfffd9000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7fda124d936738c76303cde03bd215cdbaf92051", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"pwWcxhsWkEYvxpWL9CJW", "api_key"=>"9c199460891b3afbf25d16e161009671ad4d19d2", "updated_at"=>2013-06-05 11:27:44 UTC, "created_at"=>2013-06-05 11:27:44 UTC}] flags=[] (0.0999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7679ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20b01e66cfffd9000016", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:27:38 UTC, "updated_at"=>2013-06-05 11:27:44 UTC, "memberships"=>[{"_id"=>"51af20b01e66cfffd9000017", "role"=>"admin", "account_id"=>"51af20b01e66cfffd9000015"}]}] flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20b01e66cfffd9000016", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20b01e66cfffd9000016", "_id"=>{"$ne"=>"51af20b01e66cfffd9000018"}}} (0.4649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20b01e66cfffd9000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20b01e66cfffd9000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:44 UTC, "created_at"=>2013-06-05 11:27:44 UTC}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b01e66cfffd9000016", "template_dependencies.en"=>{"$in"=>["51af20b01e66cfffd9000018"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"51af20b01e66cfffd9000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20b01e66cfffd9000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0927ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20b01e66cfffd9000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8302ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20b01e66cfffd9000016", "_id"=>{"$ne"=>"51af20b01e66cfffd9000019"}}} (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20b01e66cfffd9000016", "_id"=>{"$ne"=>"51af20b01e66cfffd9000019"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20b01e66cfffd9000016", "_id"=>{"$ne"=>"51af20b01e66cfffd9000019"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20b01e66cfffd9000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20b01e66cfffd9000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:44 UTC, "created_at"=>2013-06-05 11:27:44 UTC}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b01e66cfffd9000016", "template_dependencies.en"=>{"$in"=>["51af20b01e66cfffd9000019"]}}, "$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"=>"51af20b01e66cfffd9000019"}, "$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"=>["51af20b01e66cfffd9000019"]}} 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"=>"51af20b01e66cfffd9000016", "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"=>"51af20b01e66cfffd900001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20b01e66cfffd9000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20b01e66cfffd900001b", "updated_at"=>2013-06-05 11:27:44 UTC, "created_at"=>2013-06-05 11:27:44 UTC, "entries_custom_fields"=>[{"_id"=>"51af20b01e66cfffd900001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1543ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20b01e66cfffd900001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af20b01e66cfffd900001c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:27:44 UTC, "created_at"=>2013-06-05 11:27:44 UTC}}} flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20b01e66cfffd900001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20b01e66cfffd900001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20b01e66cfffd900001a", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3211ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20b01e66cfffd900001a"]}}} (0.4189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20b01e66cfffd900001d", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20b01e66cfffd900001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20b01e66cfffd900001a", "content_type_id"=>"51af20b01e66cfffd900001a", "_slug"=>"findable-entry", "site_id"=>"51af20b01e66cfffd9000016", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:44 UTC, "created_at"=>2013-06-05 11:27:44 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20b11e66cfffd900001e"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20b01e66cfffd900001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20b01e66cfffd900001a", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20b01e66cfffd900001a"]}}} (0.5009ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20b01e66cfffd900001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20b11e66cfffd900001e", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20b01e66cfffd900001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20b01e66cfffd900001a", "content_type_id"=>"51af20b01e66cfffd900001a", "_slug"=>"hidden", "site_id"=>"51af20b01e66cfffd9000016", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:45 UTC, "created_at"=>2013-06-05 11:27:45 UTC}] 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.8290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20b01e66cfffd9000016", "parent_id"=>"51af20b01e66cfffd9000018", "$or"=>[{"slug.en"=>"findable"}]} 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_pages", :query=>{"parent_id"=>"51af20b01e66cfffd9000018", "site_id"=>"51af20b01e66cfffd9000016", "_id"=>{"$ne"=>"51af20b11e66cfffd900001f"}}} (0.4129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20b01e66cfffd9000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4928ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20b11e66cfffd900001f", "parent_ids"=>["51af20b01e66cfffd9000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20b01e66cfffd9000016", "parent_id"=>"51af20b01e66cfffd9000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:45 UTC, "created_at"=>2013-06-05 11:27:45 UTC}] flags=[] (0.2007ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b01e66cfffd9000016", "template_dependencies.en"=>{"$in"=>["51af20b11e66cfffd900001f"]}}, "$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"=>"51af20b11e66cfffd900001f"}, "$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"=>["51af20b11e66cfffd900001f"]}} 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.8731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20b01e66cfffd9000016", "parent_id"=>"51af20b01e66cfffd9000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5572ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af20b01e66cfffd9000018", "site_id"=>"51af20b01e66cfffd9000016", "_id"=>{"$ne"=>"51af20b11e66cfffd9000020"}}} (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20b01e66cfffd9000018", "site_id"=>"51af20b01e66cfffd9000016", "_id"=>{"$ne"=>"51af20b11e66cfffd9000020"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20b01e66cfffd9000018", "site_id"=>"51af20b01e66cfffd9000016", "_id"=>{"$ne"=>"51af20b11e66cfffd9000020"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af20b01e66cfffd9000018"]}} 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"=>"51af20b11e66cfffd9000020", "parent_ids"=>["51af20b01e66cfffd9000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af20b01e66cfffd9000016", "parent_id"=>"51af20b01e66cfffd9000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:45 UTC, "created_at"=>2013-06-05 11:27:45 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b01e66cfffd9000016", "template_dependencies.en"=>{"$in"=>["51af20b11e66cfffd9000020"]}}, "$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"=>"51af20b11e66cfffd9000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3917ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20b11e66cfffd9000020"]}} 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"=>"51af20b01e66cfffd9000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20b01e66cfffd9000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af20b01e66cfffd9000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:27:46 UTC}} flags=[] (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b01e66cfffd9000016", "template_dependencies.en"=>{"$in"=>["51af20b01e66cfffd9000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3419ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af20b21e66cfffd9000021", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:27:38 UTC, "updated_at"=>2013-06-05 11:27:46 UTC, "memberships"=>[{"_id"=>"51af20b21e66cfffd9000022", "role"=>"admin", "account_id"=>"51af20b01e66cfffd9000015"}]}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af20b21e66cfffd9000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3169ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20b21e66cfffd9000021", "_id"=>{"$ne"=>"51af20b21e66cfffd9000023"}}} (0.4530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20b21e66cfffd9000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af20b21e66cfffd9000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:46 UTC, "created_at"=>2013-06-05 11:27:46 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b21e66cfffd9000021", "template_dependencies.en"=>{"$in"=>["51af20b21e66cfffd9000023"]}}, "$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"=>"51af20b21e66cfffd9000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2677ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20b21e66cfffd9000023"]}} 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"=>"51af20b21e66cfffd9000021", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20b21e66cfffd9000021", "_id"=>{"$ne"=>"51af20b31e66cfffd9000024"}}} (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20b21e66cfffd9000021", "_id"=>{"$ne"=>"51af20b31e66cfffd9000024"}}, "$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"=>nil, "site_id"=>"51af20b21e66cfffd9000021", "_id"=>{"$ne"=>"51af20b31e66cfffd9000024"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20b31e66cfffd9000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af20b21e66cfffd9000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:47 UTC, "created_at"=>2013-06-05 11:27:47 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b21e66cfffd9000021", "template_dependencies.en"=>{"$in"=>["51af20b31e66cfffd9000024"]}}, "$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"=>"51af20b31e66cfffd9000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20b31e66cfffd9000024"]}} 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"=>"51af20b21e66cfffd9000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af20b21e66cfffd9000021", "_id"=>{"$ne"=>"51af20b31e66cfffd9000025"}}} (0.5918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20b21e66cfffd9000021", "_id"=>{"$ne"=>"51af20b31e66cfffd9000025"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af20b21e66cfffd9000021", "_id"=>{"$ne"=>"51af20b31e66cfffd9000025"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.1771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af20b31e66cfffd9000025", "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"=>"51af20b21e66cfffd9000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:27:47 UTC, "created_at"=>2013-06-05 11:27:47 UTC}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b21e66cfffd9000021", "template_dependencies.en"=>{"$in"=>["51af20b31e66cfffd9000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af20b31e66cfffd9000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4067ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af20b31e66cfffd9000025"]}} 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"=>"51af20b21e66cfffd9000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4342ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af20b31e66cfffd9000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af20b21e66cfffd9000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af20b31e66cfffd9000027", "updated_at"=>2013-06-05 11:27:47 UTC, "created_at"=>2013-06-05 11:27:47 UTC, "entries_custom_fields"=>[{"_id"=>"51af20b31e66cfffd9000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20b31e66cfffd9000028"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20b31e66cfffd9000026"]}} 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"=>"51af20b31e66cfffd9000026", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af20b31e66cfffd9000026"]}}} (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af20b31e66cfffd9000028", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af20b31e66cfffd9000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af20b31e66cfffd9000026", "content_type_id"=>"51af20b31e66cfffd9000026", "_slug"=>"not-findable-entry", "site_id"=>"51af20b21e66cfffd9000021", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:27:47 UTC, "created_at"=>2013-06-05 11:27:47 UTC}] flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af20b01e66cfffd900001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20b01e66cfffd900001a"]}} 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={"_id"=>{"$ne"=>"51af20b11e66cfffd900001e"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af20b01e66cfffd900001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af20b01e66cfffd900001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20b01e66cfffd900001a"} update={"$set"=>{"updated_at"=>2013-06-05 11:27:47 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"=>"51af20b01e66cfffd900001a"} 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-06-05 13:27:47 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b01e66cfffd9000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7443ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:27:47 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b01e66cfffd9000016", "depth"=>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 202ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af20b01e66cfffd900001a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af20b01e66cfffd900001a", "updated_at"=>{"$lt"=>2013-06-05 11:27:47 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af20b01e66cfffd900001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8624ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20b01e66cfffd9000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af20b01e66cfffd900001a"}, "$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"=>"51af20b01e66cfffd900001d"} update={"$set"=>{"updated_at"=>2013-06-05 11:27:47 UTC}} flags=[] (0.0999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af20b01e66cfffd9000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af20b01e66cfffd900001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af20b11e66cfffd900001e"} update={"$set"=>{"updated_at"=>2013-06-05 11:27:48 UTC}} flags=[] (0.0911ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:27:48 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:27:48 +0200 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.6609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b01e66cfffd9000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5081ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:27:48 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af20b01e66cfffd9000016", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6239ms) Rendered text template (0.0ms) Completed 200 OK in 196ms (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.6688ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2491ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2441ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8929ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9122ms) MOPED: 127.0.0.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.5000ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3982ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af21171e66cfb6fa000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"5b0e505a9f0643f18536fc8f623215948d5675a6", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"b7aoy5dDUS9AXmVzpVAc", "api_key"=>"cf213112244c6f06f9f4cc73e7cfa8289758d2e6", "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af21171e66cfb6fa000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:29:26 UTC, "updated_at"=>2013-06-05 11:29:27 UTC, "memberships"=>[{"_id"=>"51af21171e66cfb6fa000003", "role"=>"admin", "account_id"=>"51af21171e66cfb6fa000001"}]}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21171e66cfb6fa000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8621ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21171e66cfb6fa000002", "_id"=>{"$ne"=>"51af21171e66cfb6fa000004"}}} (0.5028ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21171e66cfb6fa000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af21171e66cfb6fa000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21171e66cfb6fa000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"site_id"=>"51af21171e66cfb6fa000002", "template_dependencies.en"=>{"$in"=>["51af21171e66cfb6fa000004"]}}, "$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"=>["51af21171e66cfb6fa000004"]}} 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"=>"51af21171e66cfb6fa000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5412ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21171e66cfb6fa000005", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af21171e66cfb6fa000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af21171e66cfb6fa000004", "_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"=>"51af21171e66cfb6fa000002", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21171e66cfb6fa000002", "_id"=>{"$ne"=>"51af21171e66cfb6fa000006"}}} (0.4439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21171e66cfb6fa000002", "_id"=>{"$ne"=>"51af21171e66cfb6fa000006"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21171e66cfb6fa000002", "_id"=>{"$ne"=>"51af21171e66cfb6fa000006"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"51af21171e66cfb6fa000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af21171e66cfb6fa000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000002", "template_dependencies.en"=>{"$in"=>["51af21171e66cfb6fa000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21171e66cfb6fa000006"}, "$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"=>["51af21171e66cfb6fa000006"]}} 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"=>"51af21171e66cfb6fa000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5848ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af21171e66cfb6fa000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af21171e66cfb6fa000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af21171e66cfb6fa000008", "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC, "entries_custom_fields"=>[{"_id"=>"51af21171e66cfb6fa000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af21171e66cfb6fa000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af21171e66cfb6fa000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC}}} flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af21171e66cfb6fa00000a"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21171e66cfb6fa000007"]}} 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_content_entries selector={"content_type_id"=>"51af21171e66cfb6fa000007", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4780ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af21171e66cfb6fa000007"]}}} (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af21171e66cfb6fa00000a", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af21171e66cfb6fa000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af21171e66cfb6fa000007", "content_type_id"=>"51af21171e66cfb6fa000007", "_slug"=>"findable-entry", "site_id"=>"51af21171e66cfb6fa000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 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::ContentEntry51af21171e66cfb6fa000007", "_original_id"=>"51af21171e66cfb6fa00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21171e66cfb6fa00000b", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af21171e66cfb6fa000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af21171e66cfb6fa000007", "_original_id"=>"51af21171e66cfb6fa00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af21171e66cfb6fa00000c"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21171e66cfb6fa000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af21171e66cfb6fa000007", "_slug"=>"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::ContentEntry51af21171e66cfb6fa000007"]}}} (0.4139ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af21171e66cfb6fa000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4706ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af21171e66cfb6fa00000c", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af21171e66cfb6fa000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af21171e66cfb6fa000007", "content_type_id"=>"51af21171e66cfb6fa000007", "_slug"=>"hidden", "site_id"=>"51af21171e66cfb6fa000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 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::ContentEntry51af21171e66cfb6fa000007", "_original_id"=>"51af21171e66cfb6fa00000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3462ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21171e66cfb6fa00000d", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af21171e66cfb6fa000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af21171e66cfb6fa000007", "_original_id"=>"51af21171e66cfb6fa00000c", "_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.6061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21171e66cfb6fa000002", "parent_id"=>"51af21171e66cfb6fa000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af21171e66cfb6fa000004", "site_id"=>"51af21171e66cfb6fa000002", "_id"=>{"$ne"=>"51af21171e66cfb6fa00000e"}}} (0.3979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af21171e66cfb6fa000004"]}} 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"=>"51af21171e66cfb6fa00000e", "parent_ids"=>["51af21171e66cfb6fa000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af21171e66cfb6fa000002", "parent_id"=>"51af21171e66cfb6fa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000002", "template_dependencies.en"=>{"$in"=>["51af21171e66cfb6fa00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21171e66cfb6fa00000e"}, "$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"=>["51af21171e66cfb6fa00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af21171e66cfb6fa00000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2799ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21171e66cfb6fa00000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af21171e66cfb6fa000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af21171e66cfb6fa00000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.6227ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21171e66cfb6fa000002", "parent_id"=>"51af21171e66cfb6fa000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5660ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af21171e66cfb6fa000004", "site_id"=>"51af21171e66cfb6fa000002", "_id"=>{"$ne"=>"51af21171e66cfb6fa000010"}}} (0.7198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21171e66cfb6fa000004", "site_id"=>"51af21171e66cfb6fa000002", "_id"=>{"$ne"=>"51af21171e66cfb6fa000010"}}, "$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"=>"51af21171e66cfb6fa000004", "site_id"=>"51af21171e66cfb6fa000002", "_id"=>{"$ne"=>"51af21171e66cfb6fa000010"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af21171e66cfb6fa000004"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21171e66cfb6fa000010", "parent_ids"=>["51af21171e66cfb6fa000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af21171e66cfb6fa000002", "parent_id"=>"51af21171e66cfb6fa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000002", "template_dependencies.en"=>{"$in"=>["51af21171e66cfb6fa000010"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"51af21171e66cfb6fa000010"}, "$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"=>["51af21171e66cfb6fa000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af21171e66cfb6fa000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3290ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21171e66cfb6fa000011", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af21171e66cfb6fa000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af21171e66cfb6fa000010", "_keywords"=>["en:search"]}] flags=[] (0.1099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af21171e66cfb6fa000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af21171e66cfb6fa000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:29:27 UTC}} flags=[] (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000002", "template_dependencies.en"=>{"$in"=>["51af21171e66cfb6fa000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af21171e66cfb6fa000004"}, "$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=active_search_mongoid_models selector={"_id"=>"51af21171e66cfb6fa000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af21171e66cfb6fa000002"}}} flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} 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_sites documents=[{"_id"=>"51af21171e66cfb6fa000012", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:29:26 UTC, "updated_at"=>2013-06-05 11:29:27 UTC, "memberships"=>[{"_id"=>"51af21171e66cfb6fa000013", "role"=>"admin", "account_id"=>"51af21171e66cfb6fa000001"}]}] flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21171e66cfb6fa000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21171e66cfb6fa000012", "_id"=>{"$ne"=>"51af21171e66cfb6fa000014"}}} (0.4189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21171e66cfb6fa000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af21171e66cfb6fa000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000012", "template_dependencies.en"=>{"$in"=>["51af21171e66cfb6fa000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21171e66cfb6fa000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2871ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af21171e66cfb6fa000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0877ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af21171e66cfb6fa000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21171e66cfb6fa000015", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af21171e66cfb6fa000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af21171e66cfb6fa000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21171e66cfb6fa000012", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21171e66cfb6fa000012", "_id"=>{"$ne"=>"51af21171e66cfb6fa000016"}}} (0.4358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21171e66cfb6fa000012", "_id"=>{"$ne"=>"51af21171e66cfb6fa000016"}}, "$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"=>nil, "site_id"=>"51af21171e66cfb6fa000012", "_id"=>{"$ne"=>"51af21171e66cfb6fa000016"}}, "$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"=>"51af21171e66cfb6fa000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af21171e66cfb6fa000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000012", "template_dependencies.en"=>{"$in"=>["51af21171e66cfb6fa000016"]}}, "$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"=>"51af21171e66cfb6fa000016"}, "$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"=>["51af21171e66cfb6fa000016"]}} 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"=>"51af21171e66cfb6fa000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6578ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21171e66cfb6fa000012", "_id"=>{"$ne"=>"51af21171e66cfb6fa000017"}}} (0.6347ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21171e66cfb6fa000012", "_id"=>{"$ne"=>"51af21171e66cfb6fa000017"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21171e66cfb6fa000012", "_id"=>{"$ne"=>"51af21171e66cfb6fa000017"}}, "$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={"_id"=>{"$in"=>[]}} 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"=>"51af21171e66cfb6fa000017", "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"=>"51af21171e66cfb6fa000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000012", "template_dependencies.en"=>{"$in"=>["51af21171e66cfb6fa000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21171e66cfb6fa000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4287ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af21171e66cfb6fa000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af21171e66cfb6fa000017"}, "$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"=>"51af21171e66cfb6fa000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af21171e66cfb6fa000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af21171e66cfb6fa000017", "_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.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af21171e66cfb6fa000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af21171e66cfb6fa000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af21171e66cfb6fa000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af21171e66cfb6fa00001a", "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC, "entries_custom_fields"=>[{"_id"=>"51af21171e66cfb6fa00001a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af21171e66cfb6fa00001b"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21171e66cfb6fa000019"]}} 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_content_entries selector={"content_type_id"=>"51af21171e66cfb6fa000019", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3908ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af21171e66cfb6fa000019"]}}} (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af21171e66cfb6fa00001b", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af21171e66cfb6fa000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af21171e66cfb6fa000019", "content_type_id"=>"51af21171e66cfb6fa000019", "_slug"=>"not-findable-entry", "site_id"=>"51af21171e66cfb6fa000012", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:29:27 UTC, "created_at"=>2013-06-05 11:29:27 UTC}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af21171e66cfb6fa000019", "_original_id"=>"51af21171e66cfb6fa00001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4542ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21171e66cfb6fa00001c", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af21171e66cfb6fa000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af21171e66cfb6fa000019", "_original_id"=>"51af21171e66cfb6fa00001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1190ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:29:27 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4809ms) Rendered text template (0.0ms) Completed 200 OK in 77ms (Views: 72.7ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:29:28 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af21171e66cfb6fa000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:29:28 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000002", "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.5891ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:29:28 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000002", "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 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:29:28 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21171e66cfb6fa000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af21171e66cfb6fa000002", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5319ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5827ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1950ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.7763ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.5193ms) 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.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"51af21181e66cfb6fa00001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"24093a948e49fb0d7ee25dc563b4b68c68ac2e56", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"LLoy9KxjrjBKpxVnnqH1", "api_key"=>"f0b991e27d69c038e172e28dfe9c346c04bafde6", "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC}] flags=[] (0.1042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3681ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af21181e66cfb6fa00001e", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:29:26 UTC, "updated_at"=>2013-06-05 11:29:28 UTC, "memberships"=>[{"_id"=>"51af21181e66cfb6fa00001f", "role"=>"admin", "account_id"=>"51af21181e66cfb6fa00001d"}]}] flags=[] (0.1333ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21181e66cfb6fa00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21181e66cfb6fa00001e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000020"}}} (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21181e66cfb6fa000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af21181e66cfb6fa00001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00001e", "template_dependencies.en"=>{"$in"=>["51af21181e66cfb6fa000020"]}}, "$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"=>"51af21181e66cfb6fa000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af21181e66cfb6fa000020"]}} 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"=>"51af21181e66cfb6fa000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2141ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21181e66cfb6fa000021", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af21181e66cfb6fa00001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af21181e66cfb6fa000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21181e66cfb6fa00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4637ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21181e66cfb6fa00001e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000022"}}} (0.4852ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21181e66cfb6fa00001e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000022"}}, "$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"=>nil, "site_id"=>"51af21181e66cfb6fa00001e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000022"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21181e66cfb6fa000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af21181e66cfb6fa00001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00001e", "template_dependencies.en"=>{"$in"=>["51af21181e66cfb6fa000022"]}}, "$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"=>"51af21181e66cfb6fa000022"}, "$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"=>["51af21181e66cfb6fa000022"]}} 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"=>"51af21181e66cfb6fa00001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af21181e66cfb6fa000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af21181e66cfb6fa00001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af21181e66cfb6fa000024", "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC, "entries_custom_fields"=>[{"_id"=>"51af21181e66cfb6fa000024", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af21181e66cfb6fa000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af21181e66cfb6fa000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC}}} flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af21181e66cfb6fa000026"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af21181e66cfb6fa000023", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5848ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000023"]}}} (0.6139ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af21181e66cfb6fa000026", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af21181e66cfb6fa000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af21181e66cfb6fa000023", "content_type_id"=>"51af21181e66cfb6fa000023", "_slug"=>"findable-entry", "site_id"=>"51af21181e66cfb6fa00001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 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::ContentEntry51af21181e66cfb6fa000023", "_original_id"=>"51af21181e66cfb6fa000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4117ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21181e66cfb6fa000027", "_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af21181e66cfb6fa00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af21181e66cfb6fa000023", "_original_id"=>"51af21181e66cfb6fa000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af21181e66cfb6fa000028"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af21181e66cfb6fa000023", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4468ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000023"]}}} (0.4790ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af21181e66cfb6fa000028", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af21181e66cfb6fa000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af21181e66cfb6fa000023", "content_type_id"=>"51af21181e66cfb6fa000023", "_slug"=>"hidden", "site_id"=>"51af21181e66cfb6fa00001e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 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::ContentEntry51af21181e66cfb6fa000023", "_original_id"=>"51af21181e66cfb6fa000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21181e66cfb6fa000029", "_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af21181e66cfb6fa00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af21181e66cfb6fa000023", "_original_id"=>"51af21181e66cfb6fa000028", "_keywords"=>["hidden"]}] flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21181e66cfb6fa00001e", "parent_id"=>"51af21181e66cfb6fa000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3757ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af21181e66cfb6fa000020", "site_id"=>"51af21181e66cfb6fa00001e", "_id"=>{"$ne"=>"51af21181e66cfb6fa00002a"}}} (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af21181e66cfb6fa000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21181e66cfb6fa00002a", "parent_ids"=>["51af21181e66cfb6fa000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af21181e66cfb6fa00001e", "parent_id"=>"51af21181e66cfb6fa000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00001e", "template_dependencies.en"=>{"$in"=>["51af21181e66cfb6fa00002a"]}}, "$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"=>"51af21181e66cfb6fa00002a"}, "$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"=>["51af21181e66cfb6fa00002a"]}} 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"=>"51af21181e66cfb6fa00002a"}, "$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"=>"51af21181e66cfb6fa00002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>"51af21181e66cfb6fa00001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af21181e66cfb6fa00002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21181e66cfb6fa00001e", "parent_id"=>"51af21181e66cfb6fa000020", "$or"=>[{"slug.en"=>"search"}]} 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_pages", :query=>{"parent_id"=>"51af21181e66cfb6fa000020", "site_id"=>"51af21181e66cfb6fa00001e", "_id"=>{"$ne"=>"51af21181e66cfb6fa00002c"}}} (0.4342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21181e66cfb6fa000020", "site_id"=>"51af21181e66cfb6fa00001e", "_id"=>{"$ne"=>"51af21181e66cfb6fa00002c"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21181e66cfb6fa000020", "site_id"=>"51af21181e66cfb6fa00001e", "_id"=>{"$ne"=>"51af21181e66cfb6fa00002c"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4013ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af21181e66cfb6fa000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21181e66cfb6fa00002c", "parent_ids"=>["51af21181e66cfb6fa000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af21181e66cfb6fa00001e", "parent_id"=>"51af21181e66cfb6fa000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00001e", "template_dependencies.en"=>{"$in"=>["51af21181e66cfb6fa00002c"]}}, "$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"=>"51af21181e66cfb6fa00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2260ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af21181e66cfb6fa00002c"]}} 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"=>"51af21181e66cfb6fa00002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21181e66cfb6fa00002d", "_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>"51af21181e66cfb6fa00001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af21181e66cfb6fa00002c", "_keywords"=>["en:search"]}] flags=[] (0.1128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af21181e66cfb6fa00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af21181e66cfb6fa000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:29:28 UTC}} flags=[] (0.1140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00001e", "template_dependencies.en"=>{"$in"=>["51af21181e66cfb6fa000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af21181e66cfb6fa000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af21181e66cfb6fa000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af21181e66cfb6fa00001e"}}} flags=[] (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af21181e66cfb6fa00002e", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:29:26 UTC, "updated_at"=>2013-06-05 11:29:28 UTC, "memberships"=>[{"_id"=>"51af21181e66cfb6fa00002f", "role"=>"admin", "account_id"=>"51af21181e66cfb6fa00001d"}]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21181e66cfb6fa00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3173ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21181e66cfb6fa00002e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000030"}}} (0.3881ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21181e66cfb6fa000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af21181e66cfb6fa00002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00002e", "template_dependencies.en"=>{"$in"=>["51af21181e66cfb6fa000030"]}}, "$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"=>"51af21181e66cfb6fa000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af21181e66cfb6fa000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"51af21181e66cfb6fa000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3932ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21181e66cfb6fa000031", "_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>"51af21181e66cfb6fa00002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af21181e66cfb6fa000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21181e66cfb6fa00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3061ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21181e66cfb6fa00002e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000032"}}} (0.4280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21181e66cfb6fa00002e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000032"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21181e66cfb6fa00002e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000032"}}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"51af21181e66cfb6fa000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af21181e66cfb6fa00002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00002e", "template_dependencies.en"=>{"$in"=>["51af21181e66cfb6fa000032"]}}, "$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"=>"51af21181e66cfb6fa000032"}, "$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"=>["51af21181e66cfb6fa000032"]}} 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"=>"51af21181e66cfb6fa00002e", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21181e66cfb6fa00002e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000033"}}} (0.6611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21181e66cfb6fa00002e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000033"}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21181e66cfb6fa00002e", "_id"=>{"$ne"=>"51af21181e66cfb6fa000033"}}, "$orderby"=>{"position"=>-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_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.1740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21181e66cfb6fa000033", "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"=>"51af21181e66cfb6fa00002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC}] flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00002e", "template_dependencies.en"=>{"$in"=>["51af21181e66cfb6fa000033"]}}, "$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"=>"51af21181e66cfb6fa000033"}, "$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"=>["51af21181e66cfb6fa000033"]}} 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"=>"51af21181e66cfb6fa000033"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"51af21181e66cfb6fa000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>"51af21181e66cfb6fa00002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"51af21181e66cfb6fa000033", "_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.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"51af21181e66cfb6fa00002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af21181e66cfb6fa000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af21181e66cfb6fa00002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af21181e66cfb6fa000036", "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 UTC, "entries_custom_fields"=>[{"_id"=>"51af21181e66cfb6fa000036", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af21181e66cfb6fa000037"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000035"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4587ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af21181e66cfb6fa000035", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000035"]}}} (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af21181e66cfb6fa000037", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af21181e66cfb6fa000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af21181e66cfb6fa000035", "content_type_id"=>"51af21181e66cfb6fa000035", "_slug"=>"not-findable-entry", "site_id"=>"51af21181e66cfb6fa00002e", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:29:28 UTC, "created_at"=>2013-06-05 11:29:28 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::ContentEntry51af21181e66cfb6fa000035", "_original_id"=>"51af21181e66cfb6fa000037"}, "$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"=>"51af21181e66cfb6fa000038", "_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>"51af21181e66cfb6fa00002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry51af21181e66cfb6fa000035", "_original_id"=>"51af21181e66cfb6fa000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af21181e66cfb6fa000026"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000023"]}} 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_content_entries selector={"_id"=>{"$ne"=>"51af21181e66cfb6fa000028"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000023"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000023"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1061ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af21181e66cfb6fa000023"} update={"$set"=>{"updated_at"=>2013-06-05 11:29:28 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0777ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af21181e66cfb6fa000023"} 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.1223ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:29:28 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6537ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:29:28 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"51af21181e66cfb6fa00001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5581ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af21181e66cfb6fa000023"} 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"=>"51af21181e66cfb6fa000023", "updated_at"=>{"$lt"=>2013-06-05 11:29:28 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af21181e66cfb6fa000023"]}} 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"=>"51af21181e66cfb6fa00001e"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"51af21181e66cfb6fa000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af21181e66cfb6fa000026"} update={"$set"=>{"updated_at"=>2013-06-05 11:29:28 UTC}} flags=[] (0.1028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af21181e66cfb6fa000023", "_original_id"=>"51af21181e66cfb6fa000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3240ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af21181e66cfb6fa000027"} update={"$set"=>{"_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>"51af21181e66cfb6fa00001e", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af21181e66cfb6fa00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af21181e66cfb6fa000023"}, "$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_content_entries selector={"_id"=>"51af21181e66cfb6fa000028"} update={"$set"=>{"updated_at"=>2013-06-05 11:29:28 UTC}} flags=[] (0.0832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry51af21181e66cfb6fa000023", "_original_id"=>"51af21181e66cfb6fa000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4451ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"51af21181e66cfb6fa000029"} update={"$set"=>{"_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>"51af21181e66cfb6fa00001e", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.0999ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:29:28 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:29:28 +0200 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.6628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5167ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:29:28 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21181e66cfb6fa00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$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=active_search_mongoid_models selector={"_stored.site_id"=>"51af21181e66cfb6fa00001e", "_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 4ms (Views: 0.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2269ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0171ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.7601ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9580ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9108ms) MOPED: 127.0.0.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.4840ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_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.7644ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} 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_accounts documents=[{"_id"=>"51af21351e66cf04af000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6a8f4236a20f0d126456a85a655d754ebe420f39", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"zLFAqvyisP8MAh2B7RYV", "api_key"=>"513db97c49557f69fcd7c7b1bbd6036c193ddf5b", "updated_at"=>2013-06-05 11:29:57 UTC, "created_at"=>2013-06-05 11:29:57 UTC}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9258ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af21351e66cf04af000002", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:29:56 UTC, "updated_at"=>2013-06-05 11:29:57 UTC, "memberships"=>[{"_id"=>"51af21351e66cf04af000003", "role"=>"admin", "account_id"=>"51af21351e66cf04af000001"}]}] flags=[] (0.1416ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21351e66cf04af000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8469ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21351e66cf04af000002", "_id"=>{"$ne"=>"51af21351e66cf04af000004"}}} (0.3200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21351e66cf04af000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af21351e66cf04af000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:57 UTC, "created_at"=>2013-06-05 11:29:57 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21351e66cf04af000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21351e66cf04af000002", "template_dependencies.en"=>{"$in"=>["51af21351e66cf04af000004"]}}, "$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"=>["51af21351e66cf04af000004"]}} 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"=>"51af21351e66cf04af000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4523ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21351e66cf04af000002", "_id"=>{"$ne"=>"51af21361e66cf04af000005"}}} (0.3877ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21351e66cf04af000002", "_id"=>{"$ne"=>"51af21361e66cf04af000005"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21351e66cf04af000002", "_id"=>{"$ne"=>"51af21361e66cf04af000005"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21361e66cf04af000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af21351e66cf04af000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:58 UTC, "created_at"=>2013-06-05 11:29:58 UTC}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21351e66cf04af000002", "template_dependencies.en"=>{"$in"=>["51af21361e66cf04af000005"]}}, "$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"=>"51af21361e66cf04af000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af21361e66cf04af000005"]}} 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"=>"51af21351e66cf04af000002", "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"=>"51af21361e66cf04af000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af21351e66cf04af000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af21361e66cf04af000007", "updated_at"=>2013-06-05 11:29:58 UTC, "created_at"=>2013-06-05 11:29:58 UTC, "entries_custom_fields"=>[{"_id"=>"51af21361e66cf04af000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af21361e66cf04af000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af21361e66cf04af000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:29:58 UTC, "created_at"=>2013-06-05 11:29:58 UTC}}} flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af21361e66cf04af000009"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21361e66cf04af000006"]}} 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"=>"51af21361e66cf04af000006", "_slug"=>"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::ContentEntry51af21361e66cf04af000006"]}}} (0.6661ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af21361e66cf04af000009", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af21361e66cf04af000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af21361e66cf04af000006", "content_type_id"=>"51af21361e66cf04af000006", "_slug"=>"findable-entry", "site_id"=>"51af21351e66cf04af000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:29:58 UTC, "created_at"=>2013-06-05 11:29:58 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af21361e66cf04af00000a"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21361e66cf04af000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af21361e66cf04af000006", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2689ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af21361e66cf04af000006"]}}} (0.4642ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af21361e66cf04af000006"]}, "_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"=>"51af21361e66cf04af00000a", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af21361e66cf04af000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af21361e66cf04af000006", "content_type_id"=>"51af21361e66cf04af000006", "_slug"=>"hidden", "site_id"=>"51af21351e66cf04af000002", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:29:58 UTC, "created_at"=>2013-06-05 11:29:58 UTC}] 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.6521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21351e66cf04af000002", "parent_id"=>"51af21351e66cf04af000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af21351e66cf04af000004", "site_id"=>"51af21351e66cf04af000002", "_id"=>{"$ne"=>"51af21371e66cf04af00000b"}}} (0.6540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af21351e66cf04af000004"]}} 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"=>"51af21371e66cf04af00000b", "parent_ids"=>["51af21351e66cf04af000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af21351e66cf04af000002", "parent_id"=>"51af21351e66cf04af000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:59 UTC, "created_at"=>2013-06-05 11:29:59 UTC}] flags=[] (0.1647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21351e66cf04af000002", "template_dependencies.en"=>{"$in"=>["51af21371e66cf04af00000b"]}}, "$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"=>"51af21371e66cf04af00000b"}, "$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"=>["51af21371e66cf04af00000b"]}} 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.7730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21351e66cf04af000002", "parent_id"=>"51af21351e66cf04af000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3879ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af21351e66cf04af000004", "site_id"=>"51af21351e66cf04af000002", "_id"=>{"$ne"=>"51af21371e66cf04af00000c"}}} (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21351e66cf04af000004", "site_id"=>"51af21351e66cf04af000002", "_id"=>{"$ne"=>"51af21371e66cf04af00000c"}}, "$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"=>"51af21351e66cf04af000004", "site_id"=>"51af21351e66cf04af000002", "_id"=>{"$ne"=>"51af21371e66cf04af00000c"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af21351e66cf04af000004"]}} flags=[:slave_ok] 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"=>"51af21371e66cf04af00000c", "parent_ids"=>["51af21351e66cf04af000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af21351e66cf04af000002", "parent_id"=>"51af21351e66cf04af000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:29:59 UTC, "created_at"=>2013-06-05 11:29:59 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21351e66cf04af000002", "template_dependencies.en"=>{"$in"=>["51af21371e66cf04af00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21371e66cf04af00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2739ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af21371e66cf04af00000c"]}} 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"=>"51af21351e66cf04af000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af21351e66cf04af000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5398ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af21351e66cf04af000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:29:59 UTC}} flags=[] (0.1123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21351e66cf04af000002", "template_dependencies.en"=>{"$in"=>["51af21351e66cf04af000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_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.2408ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af21381e66cf04af00000d", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:29:56 UTC, "updated_at"=>2013-06-05 11:30:00 UTC, "memberships"=>[{"_id"=>"51af21381e66cf04af00000e", "role"=>"admin", "account_id"=>"51af21351e66cf04af000001"}]}] flags=[] (0.1462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af21381e66cf04af00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3610ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21381e66cf04af00000d", "_id"=>{"$ne"=>"51af21381e66cf04af00000f"}}} (0.3450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21381e66cf04af00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af21381e66cf04af00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:30:00 UTC, "created_at"=>2013-06-05 11:30:00 UTC}] flags=[] (0.1683ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21381e66cf04af00000d", "template_dependencies.en"=>{"$in"=>["51af21381e66cf04af00000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af21381e66cf04af00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3977ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af21381e66cf04af00000f"]}} 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"=>"51af21381e66cf04af00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4847ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21381e66cf04af00000d", "_id"=>{"$ne"=>"51af21381e66cf04af000010"}}} (0.4599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21381e66cf04af00000d", "_id"=>{"$ne"=>"51af21381e66cf04af000010"}}, "$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"=>{"parent_id"=>nil, "site_id"=>"51af21381e66cf04af00000d", "_id"=>{"$ne"=>"51af21381e66cf04af000010"}}, "$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"=>"51af21381e66cf04af000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af21381e66cf04af00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:30:00 UTC, "created_at"=>2013-06-05 11:30:00 UTC}] flags=[] (0.1798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21381e66cf04af00000d", "template_dependencies.en"=>{"$in"=>["51af21381e66cf04af000010"]}}, "$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"=>"51af21381e66cf04af000010"}, "$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"=>["51af21381e66cf04af000010"]}} 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"=>"51af21381e66cf04af00000d", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af21381e66cf04af00000d", "_id"=>{"$ne"=>"51af21381e66cf04af000011"}}} (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21381e66cf04af00000d", "_id"=>{"$ne"=>"51af21381e66cf04af000011"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af21381e66cf04af00000d", "_id"=>{"$ne"=>"51af21381e66cf04af000011"}}, "$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={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2208ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af21381e66cf04af000011", "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"=>"51af21381e66cf04af00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:30:00 UTC, "created_at"=>2013-06-05 11:30:00 UTC}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21381e66cf04af00000d", "template_dependencies.en"=>{"$in"=>["51af21381e66cf04af000011"]}}, "$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"=>"51af21381e66cf04af000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af21381e66cf04af000011"]}} 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"=>"51af21381e66cf04af00000d", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"51af21381e66cf04af000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af21381e66cf04af00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af21381e66cf04af000013", "updated_at"=>2013-06-05 11:30:00 UTC, "created_at"=>2013-06-05 11:30:00 UTC, "entries_custom_fields"=>[{"_id"=>"51af21381e66cf04af000013", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af21381e66cf04af000014"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af21381e66cf04af000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af21381e66cf04af000012", "_slug"=>"not-findable-entry"} 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::ContentEntry51af21381e66cf04af000012"]}}} (0.4973ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af21381e66cf04af000014", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af21381e66cf04af000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af21381e66cf04af000012", "content_type_id"=>"51af21381e66cf04af000012", "_slug"=>"not-findable-entry", "site_id"=>"51af21381e66cf04af00000d", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:30:00 UTC, "created_at"=>2013-06-05 11:30:00 UTC}] flags=[] (0.1521ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:30:01 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21351e66cf04af000002", "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 76ms (Views: 71.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-06-05 13:30:01 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21351e66cf04af000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4308ms) Rendered text template (0.0ms) Completed 200 OK in 198ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2013-06-05 13:30:01 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21351e66cf04af000002", "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.7470ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) Started GET "/" for 127.0.0.1 at 2013-06-05 13:30:01 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21351e66cf04af000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-06-05 13:30:01 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af21351e66cf04af000002", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5879ms) Rendered text template (0.0ms) Completed 200 OK in 274ms (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.5352ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6551ms) 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.5271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9518ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_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"=>"51af213a1e66cf04af000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"93f22fd0dc819af3af5ddf5c1ec5bc686788eba3", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"vQtjTRAL5xoDq5C8hWvq", "api_key"=>"9ab4190e6898722e1da28212f622fe9386e0fccf", "updated_at"=>2013-06-05 11:30:02 UTC, "created_at"=>2013-06-05 11:30:02 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} (0.7839ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af213a1e66cf04af000016", "locales"=>["en"], "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-06-05 11:29:56 UTC, "updated_at"=>2013-06-05 11:30:02 UTC, "memberships"=>[{"_id"=>"51af213a1e66cf04af000017", "role"=>"admin", "account_id"=>"51af213a1e66cf04af000015"}]}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af213a1e66cf04af000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7589ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af213a1e66cf04af000016", "_id"=>{"$ne"=>"51af213a1e66cf04af000018"}}} (0.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af213a1e66cf04af000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af213a1e66cf04af000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:30:02 UTC, "created_at"=>2013-06-05 11:30:02 UTC}] flags=[] (0.2730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213a1e66cf04af000016", "template_dependencies.en"=>{"$in"=>["51af213a1e66cf04af000018"]}}, "$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"=>"51af213a1e66cf04af000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af213a1e66cf04af000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af213a1e66cf04af000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af213a1e66cf04af000016", "_id"=>{"$ne"=>"51af213a1e66cf04af000019"}}} (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af213a1e66cf04af000016", "_id"=>{"$ne"=>"51af213a1e66cf04af000019"}}, "$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"=>nil, "site_id"=>"51af213a1e66cf04af000016", "_id"=>{"$ne"=>"51af213a1e66cf04af000019"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af213a1e66cf04af000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af213a1e66cf04af000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:30:02 UTC, "created_at"=>2013-06-05 11:30:02 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213a1e66cf04af000016", "template_dependencies.en"=>{"$in"=>["51af213a1e66cf04af000019"]}}, "$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"=>"51af213a1e66cf04af000019"}, "$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"=>["51af213a1e66cf04af000019"]}} 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"=>"51af213a1e66cf04af000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7071ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af213a1e66cf04af00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af213a1e66cf04af000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af213a1e66cf04af00001b", "updated_at"=>2013-06-05 11:30:02 UTC, "created_at"=>2013-06-05 11:30:02 UTC, "entries_custom_fields"=>[{"_id"=>"51af213a1e66cf04af00001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af213a1e66cf04af00001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"51af213a1e66cf04af00001c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"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-06-05 11:30:02 UTC, "created_at"=>2013-06-05 11:30:02 UTC}}} flags=[] (0.1638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af213a1e66cf04af00001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af213a1e66cf04af00001a"]}} 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_content_entries selector={"content_type_id"=>"51af213a1e66cf04af00001a", "_slug"=>"findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4051ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af213a1e66cf04af00001a"]}}} (0.5891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af213a1e66cf04af00001d", "_position"=>1, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af213a1e66cf04af00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af213a1e66cf04af00001a", "content_type_id"=>"51af213a1e66cf04af00001a", "_slug"=>"findable-entry", "site_id"=>"51af213a1e66cf04af000016", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:30:02 UTC, "created_at"=>2013-06-05 11:30:02 UTC}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af213b1e66cf04af00001e"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af213a1e66cf04af00001a"]}} 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"=>"51af213a1e66cf04af00001a", "_slug"=>"hidden"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af213a1e66cf04af00001a"]}}} (0.4749ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af213a1e66cf04af00001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.7010ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af213b1e66cf04af00001e", "_position"=>2, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51af213a1e66cf04af00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af213a1e66cf04af00001a", "content_type_id"=>"51af213a1e66cf04af00001a", "_slug"=>"hidden", "site_id"=>"51af213a1e66cf04af000016", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:30:03 UTC, "created_at"=>2013-06-05 11:30:03 UTC}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af213a1e66cf04af000016", "parent_id"=>"51af213a1e66cf04af000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af213a1e66cf04af000018", "site_id"=>"51af213a1e66cf04af000016", "_id"=>{"$ne"=>"51af213b1e66cf04af00001f"}}} (0.4258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"_id"=>{"$in"=>["51af213a1e66cf04af000018"]}} 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"=>"51af213b1e66cf04af00001f", "parent_ids"=>["51af213a1e66cf04af000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af213a1e66cf04af000016", "parent_id"=>"51af213a1e66cf04af000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:30:03 UTC, "created_at"=>2013-06-05 11:30:03 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213a1e66cf04af000016", "template_dependencies.en"=>{"$in"=>["51af213b1e66cf04af00001f"]}}, "$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"=>"51af213b1e66cf04af00001f"}, "$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"=>["51af213b1e66cf04af00001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af213a1e66cf04af000016", "parent_id"=>"51af213a1e66cf04af000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3479ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>"51af213a1e66cf04af000018", "site_id"=>"51af213a1e66cf04af000016", "_id"=>{"$ne"=>"51af213b1e66cf04af000020"}}} (0.4301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af213a1e66cf04af000018", "site_id"=>"51af213a1e66cf04af000016", "_id"=>{"$ne"=>"51af213b1e66cf04af000020"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"51af213a1e66cf04af000018", "site_id"=>"51af213a1e66cf04af000016", "_id"=>{"$ne"=>"51af213b1e66cf04af000020"}}, "$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={"_id"=>{"$in"=>["51af213a1e66cf04af000018"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5138ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af213b1e66cf04af000020", "parent_ids"=>["51af213a1e66cf04af000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_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"=>"51af213a1e66cf04af000016", "parent_id"=>"51af213a1e66cf04af000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:30:03 UTC, "created_at"=>2013-06-05 11:30:03 UTC}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213a1e66cf04af000016", "template_dependencies.en"=>{"$in"=>["51af213b1e66cf04af000020"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"51af213b1e66cf04af000020"}, "$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"=>["51af213b1e66cf04af000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213a1e66cf04af000016", "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_sites selector={"$query"=>{"_id"=>"51af213a1e66cf04af000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"51af213a1e66cf04af000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-06-05 11:30:04 UTC}} flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213a1e66cf04af000016", "template_dependencies.en"=>{"$in"=>["51af213a1e66cf04af000018"]}}, "$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_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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"51af213c1e66cf04af000021", "locales"=>["en"], "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-06-05 11:29:56 UTC, "updated_at"=>2013-06-05 11:30:04 UTC, "memberships"=>[{"_id"=>"51af213c1e66cf04af000022", "role"=>"admin", "account_id"=>"51af213a1e66cf04af000015"}]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"51af213c1e66cf04af000021", "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 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af213c1e66cf04af000021", "_id"=>{"$ne"=>"51af213c1e66cf04af000023"}}} (0.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af213c1e66cf04af000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"51af213c1e66cf04af000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:30:04 UTC, "created_at"=>2013-06-05 11:30:04 UTC}] flags=[] (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213c1e66cf04af000021", "template_dependencies.en"=>{"$in"=>["51af213c1e66cf04af000023"]}}, "$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"=>"51af213c1e66cf04af000023"}, "$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"=>["51af213c1e66cf04af000023"]}} 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"=>"51af213c1e66cf04af000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5052ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af213c1e66cf04af000021", "_id"=>{"$ne"=>"51af213c1e66cf04af000024"}}} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af213c1e66cf04af000021", "_id"=>{"$ne"=>"51af213c1e66cf04af000024"}}, "$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"=>nil, "site_id"=>"51af213c1e66cf04af000021", "_id"=>{"$ne"=>"51af213c1e66cf04af000024"}}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4632ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af213c1e66cf04af000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"51af213c1e66cf04af000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:30:04 UTC, "created_at"=>2013-06-05 11:30:04 UTC}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213c1e66cf04af000021", "template_dependencies.en"=>{"$in"=>["51af213c1e66cf04af000024"]}}, "$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"=>"51af213c1e66cf04af000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2730ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af213c1e66cf04af000024"]}} 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"=>"51af213c1e66cf04af000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages", :query=>{"parent_id"=>nil, "site_id"=>"51af213c1e66cf04af000021", "_id"=>{"$ne"=>"51af213c1e66cf04af000025"}}} (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af213c1e66cf04af000021", "_id"=>{"$ne"=>"51af213c1e66cf04af000025"}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"51af213c1e66cf04af000021", "_id"=>{"$ne"=>"51af213c1e66cf04af000025"}}, "$orderby"=>{"position"=>-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_pages selector={"_id"=>{"$in"=>[]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2198ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"51af213c1e66cf04af000025", "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"=>"51af213c1e66cf04af000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-06-05 11:30:04 UTC, "created_at"=>2013-06-05 11:30:04 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213c1e66cf04af000021", "template_dependencies.en"=>{"$in"=>["51af213c1e66cf04af000025"]}}, "$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"=>"51af213c1e66cf04af000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2470ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["51af213c1e66cf04af000025"]}} 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"=>"51af213c1e66cf04af000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"51af213d1e66cf04af000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"51af213c1e66cf04af000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"51af213d1e66cf04af000027", "updated_at"=>2013-06-05 11:30:05 UTC, "created_at"=>2013-06-05 11:30:05 UTC, "entries_custom_fields"=>[{"_id"=>"51af213d1e66cf04af000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af213d1e66cf04af000028"}, "_slug"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af213d1e66cf04af000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af213d1e66cf04af000026", "_slug"=>"not-findable-entry"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3133ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry51af213d1e66cf04af000026"]}}} (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"51af213d1e66cf04af000028", "_position"=>1, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51af213d1e66cf04af000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry51af213d1e66cf04af000026", "content_type_id"=>"51af213d1e66cf04af000026", "_slug"=>"not-findable-entry", "site_id"=>"51af213c1e66cf04af000021", "_label_field_name"=>"name", "updated_at"=>2013-06-05 11:30:05 UTC, "created_at"=>2013-06-05 11:30:05 UTC}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"51af213a1e66cf04af00001d"}, "_slug"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry51af213a1e66cf04af00001a"]}} 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_content_entries selector={"_id"=>{"$ne"=>"51af213b1e66cf04af00001e"}, "_slug"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry51af213a1e66cf04af00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry51af213a1e66cf04af00001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1118ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af213a1e66cf04af00001a"} update={"$set"=>{"updated_at"=>2013-06-05 11:30:05 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0782ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af213a1e66cf04af00001a"} 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-06-05 13:30:05 +0200 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213a1e66cf04af000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5062ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:30:05 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213a1e66cf04af000016", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5121ms) Rendered text template (0.0ms) Completed 200 OK in 191ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"51af213a1e66cf04af00001a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"51af213a1e66cf04af00001a", "updated_at"=>{"$lt"=>2013-06-05 11:30:05 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry51af213a1e66cf04af00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af213a1e66cf04af000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af213a1e66cf04af00001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4761ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af213a1e66cf04af00001d"} update={"$set"=>{"updated_at"=>2013-06-05 11:30:05 UTC}} flags=[] (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"51af213a1e66cf04af000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"51af213a1e66cf04af00001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5300ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"51af213b1e66cf04af00001e"} update={"$set"=>{"updated_at"=>2013-06-05 11:30:06 UTC}} flags=[] (0.1009ms) Started GET "/en/" for 127.0.0.1 at 2013-06-05 13:30:06 +0200 Started GET "/en" for 127.0.0.1 at 2013-06-05 13:30:06 +0200 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.8619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213a1e66cf04af000016", "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 4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-06-05 13:30:06 +0200 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"51af213a1e66cf04af000016", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6950ms) Rendered text template (0.0ms) Completed 200 OK in 202ms (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.6149ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3082ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4372ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.1498ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0581ms)