{"code":"var Component=(()=>{var g=Object.create;var r=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var y=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),f=(n,e)=>{for(var l in e)r(n,l,{get:e[l],enumerable:!0})},t=(n,e,l,h)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let s of k(e))!u.call(n,s)&&s!==l&&r(n,s,{get:()=>e[s],enumerable:!(h=p(e,s))||h.enumerable});return n};var F=(n,e,l)=>(l=n!=null?g(m(n)):{},t(e||!n||!n.__esModule?r(l,\"default\",{value:n,enumerable:!0}):l,n)),b=n=>t(r({},\"__esModule\",{value:!0}),n);var a=y((v,d)=>{d.exports=_jsx_runtime});var C={};f(C,{default:()=>o});var i=F(a());function c(n){let e={a:\"a\",code:\"code\",em:\"em\",h2:\"h2\",h3:\"h3\",h4:\"h4\",hr:\"hr\",img:\"img\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...n.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.p,{children:\"Spotlight search is one of macOS's most essential features, but when it stops working correctly, it can severely impact your productivity. Whether you're experiencing search failures, mds_stores consuming excessive CPU, or indexing that never seems to complete, this comprehensive guide provides proven solutions to restore Spotlight functionality on macOS Tahoe 26 and earlier versions.\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.img,{alt:\"Spotlight Rebuild Complete Guide\",src:\"/images/blog/spotlight-rebuild-guide-2025/spotlight-rebuild-hero.webp\",width:\"2880\",height:\"1800\"})}),`\n`,(0,i.jsx)(e.h2,{id:\"quick-summary-spotlight-troubleshooting-solutions\",children:\"Quick Summary: Spotlight Troubleshooting Solutions\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Problem\"}),\": Spotlight not finding files, apps, or returning irrelevant results\"]}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Quick Fix\"}),\" (Works for 70% of users):\"]}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[\"Open \",(0,i.jsx)(e.strong,{children:\"System Settings > Siri & Spotlight\"})]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Click \",(0,i.jsx)(e.strong,{children:\"Spotlight Privacy\"}),\" button\"]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Drag your \",(0,i.jsx)(e.strong,{children:\"Macintosh HD\"}),\" to the exclusion list\"]}),`\n`,(0,i.jsx)(e.li,{children:\"Wait 30 seconds, then remove it\"}),`\n`,(0,i.jsx)(e.li,{children:\"Allow reindexing to complete (1-4 hours depending on storage size)\"}),`\n`]}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"If Quick Fix Doesn't Work\"}),\": Continue reading for Terminal commands and advanced troubleshooting.\"]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"understanding-spotlight-and-its-components\",children:\"Understanding Spotlight and Its Components\"}),`\n`,(0,i.jsx)(e.h3,{id:\"what-is-spotlight\",children:\"What is Spotlight?\"}),`\n`,(0,i.jsx)(e.p,{children:\"Spotlight is macOS's built-in search system that indexes all files, applications, emails, and metadata on your Mac. It enables instant access to anything on your computer through a simple keyboard shortcut (Cmd+Space).\"}),`\n`,(0,i.jsx)(e.h3,{id:\"key-spotlight-processes\",children:\"Key Spotlight Processes\"}),`\n`,(0,i.jsx)(e.p,{children:\"Understanding these processes helps diagnose problems:\"}),`\n`,(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:\"Process\"}),(0,i.jsx)(e.th,{children:\"Role\"}),(0,i.jsx)(e.th,{children:\"Normal Behavior\"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.strong,{children:\"mds\"})}),(0,i.jsx)(e.td,{children:\"Metadata Server - manages overall indexing\"}),(0,i.jsx)(e.td,{children:\"Low CPU except during boot\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.strong,{children:\"mds_stores\"})}),(0,i.jsx)(e.td,{children:\"Stores and maintains indexed metadata\"}),(0,i.jsx)(e.td,{children:\"Low CPU except when indexing new files\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.strong,{children:\"mdworker\"})}),(0,i.jsx)(e.td,{children:\"Worker process that performs actual indexing\"}),(0,i.jsx)(e.td,{children:\"Multiple instances during heavy indexing\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.strong,{children:\"corespotlightd\"})}),(0,i.jsx)(e.td,{children:\"Core Spotlight daemon\"}),(0,i.jsx)(e.td,{children:\"Background service\"})]})]})]}),`\n`,(0,i.jsx)(e.p,{children:\"When Spotlight works correctly, these processes run quietly in the background. Problems arise when they consume excessive resources or fail to index properly.\"}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"common-spotlight-problems-on-macos-tahoe-26\",children:\"Common Spotlight Problems on macOS Tahoe 26\"}),`\n`,(0,i.jsx)(e.h3,{id:\"problem-1-spotlight-not-finding-apps\",children:\"Problem 1: Spotlight Not Finding Apps\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Symptoms:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Typing app names returns only web results\"}),`\n`,(0,i.jsx)(e.li,{children:\"Previously found applications now missing from results\"}),`\n`,(0,i.jsx)(e.li,{children:\"Only Messages and Documents appear in search\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Causes:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Corrupted Spotlight index after macOS update\"}),`\n`,(0,i.jsx)(e.li,{children:\"Third-party software interference (Adobe Creative Cloud, Logitech Options+)\"}),`\n`,(0,i.jsx)(e.li,{children:\"Privacy settings accidentally excluding Applications folder\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"problem-2-mds_stores-high-cpu-usage\",children:\"Problem 2: mds_stores High CPU Usage\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.img,{alt:\"Activity Monitor showing mds_stores process\",src:\"/images/blog/spotlight-rebuild-guide-2025/activity-monitor-mds.webp\",width:\"1560\",height:\"1108\"})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Symptoms:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"mds_stores using 100-600% CPU continuously\"}),`\n`,(0,i.jsx)(e.li,{children:\"Mac running hot and fans spinning loudly\"}),`\n`,(0,i.jsx)(e.li,{children:\"System becoming sluggish and unresponsive\"}),`\n`,(0,i.jsx)(e.li,{children:\"Battery draining rapidly on laptops\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Normal vs. Abnormal:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Normal\"}),\": High CPU for 15-45 minutes after system updates, large file transfers, or connecting external drives\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Abnormal\"}),\": Continuous high CPU for hours or days with no end in sight\"]}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"problem-3-excessive-disk-writes-sequoia-bug\",children:\"Problem 3: Excessive Disk Writes (Sequoia Bug)\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Critical Warning\"}),\": A bug in macOS Sequoia caused Spotlight to write up to 26TB of data per night to SSDs. Users experiencing 50GB of daily writes suddenly saw 26TB overnight\\u2014equivalent to 4 months of SSD wear in just 2 weeks.\"]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"If affected:\"})}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Immediately disable Spotlight to prevent SSD damage\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -a\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" off\"})]})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"problem-4-spotlight-indexing-stuck\",children:\"Problem 4: Spotlight Indexing Stuck\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Symptoms:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:'\"Indexing...\" message appears indefinitely'}),`\n`,(0,i.jsx)(e.li,{children:\"Search results never update with new files\"}),`\n`,(0,i.jsx)(e.li,{children:\"Spotlight appears to focus only on web results\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"problem-5-touch-id-bug-macos-tahoe-specific\",children:\"Problem 5: Touch ID Bug (macOS Tahoe Specific)\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Symptom\"}),\": Spotlight clipboard history stops working after unlocking with Touch ID\"]}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Workaround\"}),\": Fully type your password instead of using Touch ID to unlock\"]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"method-1-rebuild-spotlight-index-via-system-settings\",children:\"Method 1: Rebuild Spotlight Index via System Settings\"}),`\n`,(0,i.jsx)(e.p,{children:\"This is the safest and most recommended method for most users.\"}),`\n`,(0,i.jsx)(e.h3,{id:\"step-by-step-instructions\",children:\"Step-by-Step Instructions\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.img,{alt:\"Spotlight Privacy Settings\",src:\"/images/blog/spotlight-rebuild-guide-2025/spotlight-privacy-settings.webp\",width:\"1560\",height:\"1396\"})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"For macOS Ventura 13 and later (including Tahoe 26):\"})}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[\"Click the \",(0,i.jsx)(e.strong,{children:\"Apple menu\"}),\" () in the top-left corner\"]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Select \",(0,i.jsx)(e.strong,{children:\"System Settings\"})]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Click \",(0,i.jsx)(e.strong,{children:\"Siri & Spotlight\"}),\" in the sidebar (or just \",(0,i.jsx)(e.strong,{children:\"Spotlight\"}),\" on some versions)\"]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Scroll down and click the \",(0,i.jsx)(e.strong,{children:\"Spotlight Privacy\"}),\" button\"]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Click the \",(0,i.jsx)(e.strong,{children:\"+\"}),' button or drag your startup disk (usually \"Macintosh HD\") into the list']}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Wait 30 seconds\"}),\" - this tells Spotlight to stop indexing the drive\"]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Select the disk you just added and click the \",(0,i.jsx)(e.strong,{children:\"-\"}),\" (minus) button to remove it\"]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Click \",(0,i.jsx)(e.strong,{children:\"Done\"}),\" and close System Settings\"]}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"What happens next:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Spotlight immediately begins rebuilding the index\"}),`\n`,(0,i.jsx)(e.li,{children:'You may see \"Indexing...\" in the Spotlight window'}),`\n`,(0,i.jsx)(e.li,{children:\"Indexing typically takes 1-4 hours depending on your storage size and file count\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"expected-indexing-times\",children:\"Expected Indexing Times\"}),`\n`,(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:\"Storage Size\"}),(0,i.jsx)(e.th,{children:\"Estimated Time (SSD)\"}),(0,i.jsx)(e.th,{children:\"Estimated Time (HDD)\"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"100 GB\"}),(0,i.jsx)(e.td,{children:\"30-60 minutes\"}),(0,i.jsx)(e.td,{children:\"1-2 hours\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"250 GB\"}),(0,i.jsx)(e.td,{children:\"1-2 hours\"}),(0,i.jsx)(e.td,{children:\"2-4 hours\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"500 GB\"}),(0,i.jsx)(e.td,{children:\"2-4 hours\"}),(0,i.jsx)(e.td,{children:\"4-8 hours\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"1 TB\"}),(0,i.jsx)(e.td,{children:\"4-8 hours\"}),(0,i.jsx)(e.td,{children:\"8-16 hours\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"2 TB+\"}),(0,i.jsx)(e.td,{children:\"8-24 hours\"}),(0,i.jsx)(e.td,{children:\"1-3 days\"})]})]})]}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Pro Tip\"}),\": Start the rebuild process at the end of your workday to allow uninterrupted indexing overnight.\"]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"method-2-terminal-commands-for-spotlight-rebuild\",children:\"Method 2: Terminal Commands for Spotlight Rebuild\"}),`\n`,(0,i.jsx)(e.p,{children:\"When System Settings method doesn't work, Terminal commands provide more control.\"}),`\n`,(0,i.jsx)(e.h3,{id:\"basic-commands\",children:\"Basic Commands\"}),`\n`,(0,i.jsx)(e.h4,{id:\"check-spotlight-status\",children:\"Check Spotlight Status\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Check status of root volume\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -s\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Check status of all volumes\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -avs\"})]})]})})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Expected output:\"})}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"M 6,1 C 4.354992,1 3,2.354992 3,4 v 16 c 0,1.645008 1.354992,3 3,3 h 12 c 1.645008,0 3,-1.354992 3,-3 V 8 7 A 1.0001,1.0001 0 0 0 20.707031,6.2929687 l -5,-5 A 1.0001,1.0001 0 0 0 15,1 h -1 z m 0,2 h 7 v 3 c 0,1.645008 1.354992,3 3,3 h 3 v 11 c 0,0.564129 -0.435871,1 -1,1 H 6 C 5.4358712,21 5,20.564129 5,20 V 4 C 5,3.4358712 5.4358712,3 6,3 Z M 15,3.4140625 18.585937,7 H 16 C 15.435871,7 15,6.5641288 15,6 Z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"/:\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"    Indexing enabled.\"})})]})})}),`\n`,(0,i.jsx)(e.h4,{id:\"simple-index-rebuild\",children:\"Simple Index Rebuild\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Erase and rebuild index for root volume\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -E\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"})]})]})})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"What this does:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Erases the existing Spotlight metadata store\"}),`\n`,(0,i.jsx)(e.li,{children:\"Triggers a complete rebuild from scratch\"}),`\n`,(0,i.jsx)(e.li,{children:\"Requires administrator password\"}),`\n`]}),`\n`,(0,i.jsx)(e.h4,{id:\"rebuild-external-drive-index\",children:\"Rebuild External Drive Index\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:'# Replace \"ExternalDrive\" with your drive name'})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -E\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /Volumes/ExternalDrive\"})]})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"advanced-rebuild-for-persistent-problems\",children:\"Advanced Rebuild (For Persistent Problems)\"}),`\n`,(0,i.jsx)(e.p,{children:\"When the basic rebuild doesn't work, use this 4-step process:\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Step 1: Disable indexing\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" off\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Step 2: Remove corrupted Spotlight folder\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" rm\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -rf\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /.Spotlight-V100\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Step 3: Re-enable indexing\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" on\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Step 4: Force rebuild\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -E\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"})]})]})})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Important Notes:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[\"On macOS Big Sur and later, the Spotlight folder may be at \",(0,i.jsx)(e.code,{children:\"/System/Volumes/Data/.Spotlight-V100\"})]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Some users report the index at \",(0,i.jsx)(e.code,{children:\"~/.Spotlight-V100\"}),\" (note the tilde for home directory)\"]}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"complete-mdutil-command-reference\",children:\"Complete mdutil Command Reference\"}),`\n`,(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:\"Command\"}),(0,i.jsx)(e.th,{children:\"Description\"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"mdutil -s /\"})}),(0,i.jsx)(e.td,{children:\"Display indexing status\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"mdutil -i on /\"})}),(0,i.jsx)(e.td,{children:\"Enable indexing for volume\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"mdutil -i off /\"})}),(0,i.jsx)(e.td,{children:\"Disable indexing for volume\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"mdutil -E /\"})}),(0,i.jsx)(e.td,{children:\"Erase and rebuild index\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"mdutil -a -i off\"})}),(0,i.jsx)(e.td,{children:\"Disable indexing for ALL volumes\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"mdutil -a -i on\"})}),(0,i.jsx)(e.td,{children:\"Enable indexing for ALL volumes\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"mdutil -X /\"})}),(0,i.jsx)(e.td,{children:\"Remove Spotlight index directory only\"})]})]})]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"method-3-fix-mds_stores-high-cpu-usage\",children:\"Method 3: Fix mds_stores High CPU Usage\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.img,{alt:\"Activity Monitor CPU Tab\",src:\"/images/blog/spotlight-rebuild-guide-2025/activity-monitor-cpu.webp\",width:\"1560\",height:\"1102\"})}),`\n`,(0,i.jsx)(e.h3,{id:\"quick-fixes\",children:\"Quick Fixes\"}),`\n`,(0,i.jsx)(e.h4,{id:\"1-restart-your-mac\",children:\"1. Restart Your Mac\"}),`\n`,(0,i.jsx)(e.p,{children:\"Sometimes the simplest solution works:\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Save all your work\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"Click Apple menu > \",(0,i.jsx)(e.strong,{children:\"Restart\"})]}),`\n`,(0,i.jsxs)(e.li,{children:[\"After restart, open \",(0,i.jsx)(e.strong,{children:\"Activity Monitor\"}),\" (Utilities folder)\"]}),`\n`,(0,i.jsx)(e.li,{children:\"Check if mds_stores CPU usage has normalized\"}),`\n`]}),`\n`,(0,i.jsx)(e.h4,{id:\"2-wait-for-indexing-to-complete\",children:\"2. Wait for Indexing to Complete\"}),`\n`,(0,i.jsx)(e.p,{children:\"If you recently:\"}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Updated macOS\"}),`\n`,(0,i.jsx)(e.li,{children:\"Transferred large amounts of files\"}),`\n`,(0,i.jsx)(e.li,{children:\"Connected a new external drive\"}),`\n`,(0,i.jsx)(e.li,{children:\"Restored from backup\"}),`\n`]}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Give Spotlight 15-45 minutes\"}),\" to complete indexing. High CPU usage during this period is normal.\"]}),`\n`,(0,i.jsx)(e.h4,{id:\"3-temporarily-disable-spotlight\",children:\"3. Temporarily Disable Spotlight\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Disable Spotlight indexing\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -a\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" off\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Verify mds_stores CPU drops in Activity Monitor\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Re-enable when ready\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -a\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" on\"})]})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"exclude-folders-from-spotlight-indexing\",children:\"Exclude Folders from Spotlight Indexing\"}),`\n`,(0,i.jsx)(e.p,{children:\"Reducing what Spotlight indexes can significantly lower CPU usage:\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.img,{alt:\"Spotlight Exclude Locations\",src:\"/images/blog/spotlight-rebuild-guide-2025/spotlight-exclude-locations.jpg\",width:\"842\",height:\"675\"})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Recommended exclusions:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[\"Development folders containing \",(0,i.jsx)(e.code,{children:\"node_modules\"})]}),`\n`,(0,i.jsx)(e.li,{children:\"Virtual machine disk images\"}),`\n`,(0,i.jsx)(e.li,{children:\"Large media archives you don't need to search\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"Git repository \",(0,i.jsx)(e.code,{children:\".git\"}),\" folders\"]}),`\n`,(0,i.jsx)(e.li,{children:\"Build output directories\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"How to exclude:\"})}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"System Settings > Siri & Spotlight > Spotlight Privacy\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"Click \",(0,i.jsx)(e.strong,{children:\"+\"}),\" and add folders to exclude\"]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Click \",(0,i.jsx)(e.strong,{children:\"Done\"})]}),`\n`]}),`\n`,(0,i.jsx)(e.h4,{id:\"via-terminal-alternative-method\",children:\"Via Terminal (Alternative Method)\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Create a file that prevents indexing\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"touch\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /path/to/folder/.metadata_never_index\"})]})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"run-disk-utility-first-aid\",children:\"Run Disk Utility First Aid\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.img,{alt:\"Disk Utility First Aid\",src:\"/images/blog/spotlight-rebuild-guide-2025/disk-utility-main.png\",width:\"2432\",height:\"1424\"})}),`\n`,(0,i.jsx)(e.p,{children:\"Corrupted file systems can cause indexing problems:\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[\"Open \",(0,i.jsx)(e.strong,{children:\"Disk Utility\"}),\" (Applications > Utilities)\"]}),`\n`,(0,i.jsx)(e.li,{children:\"Select your startup disk in the sidebar\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"Click \",(0,i.jsx)(e.strong,{children:\"First Aid\"}),\" button\"]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Click \",(0,i.jsx)(e.strong,{children:\"Run\"}),\" to verify and repair disk\"]}),`\n`]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"method-4-force-quit-and-restart-spotlight-processes\",children:\"Method 4: Force Quit and Restart Spotlight Processes\"}),`\n`,(0,i.jsx)(e.h3,{id:\"using-activity-monitor\",children:\"Using Activity Monitor\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[\"Open \",(0,i.jsx)(e.strong,{children:\"Activity Monitor\"}),\" (Applications > Utilities)\"]}),`\n`,(0,i.jsx)(e.li,{children:'Search for \"Spotlight\" in the search field'}),`\n`,(0,i.jsxs)(e.li,{children:[\"Select \",(0,i.jsx)(e.strong,{children:\"Spotlight\"}),\" process\"]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Click the \",(0,i.jsx)(e.strong,{children:\"X\"}),\" button in the toolbar\"]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Choose \",(0,i.jsx)(e.strong,{children:\"Force Quit\"})]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Repeat for \",(0,i.jsx)(e.strong,{children:\"spotlightknowledged\"}),\" process\"]}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:\"Both processes will automatically restart with fresh state.\"}),`\n`,(0,i.jsx)(e.h3,{id:\"using-terminal\",children:\"Using Terminal\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Kill Spotlight processes (they restart automatically)\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"killall\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Spotlight\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"killall\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" spotlightknowledged\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Or more forcefully\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"killall\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -KILL\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Spotlight\"})]})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"restart-mds-service\",children:\"Restart mds Service\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Stop and start mds service\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" launchctl\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" stop\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" com.apple.metadata.mds\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" launchctl\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" start\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" com.apple.metadata.mds\"})]})]})})}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Note\"}),': On recent macOS versions with System Integrity Protection (SIP), some launchctl operations may fail with \"Operation not permitted\" errors.']}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"method-5-check-for-third-party-software-conflicts\",children:\"Method 5: Check for Third-Party Software Conflicts\"}),`\n`,(0,i.jsx)(e.h3,{id:\"known-culprits\",children:\"Known Culprits\"}),`\n`,(0,i.jsx)(e.p,{children:\"Based on user reports, these applications commonly interfere with Spotlight:\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Adobe Creative Cloud\"}),\" - Background processes can conflict with indexing\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Logitech Options+\"}),\" - Energy saver features may pause Spotlight\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Parallels Toolbox\"}),' - \"Pause Spotlight on battery\" option']}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Antivirus software\"}),\" - May block Spotlight from accessing files\"]}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"how-to-identify-the-culprit\",children:\"How to Identify the Culprit\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[\"Open \",(0,i.jsx)(e.strong,{children:\"System Settings > General > Login Items & Extensions\"})]}),`\n`,(0,i.jsx)(e.li,{children:'Note all items under \"Allow in the Background\"'}),`\n`,(0,i.jsx)(e.li,{children:\"Disable them one by one, restarting between each\"}),`\n`,(0,i.jsx)(e.li,{children:\"Test Spotlight after each restart\"}),`\n`,(0,i.jsx)(e.li,{children:\"When Spotlight works, you've found the conflicting app\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"fix-for-adobe-creative-cloud\",children:\"Fix for Adobe Creative Cloud\"}),`\n`,(0,i.jsx)(e.p,{children:\"Many users report Adobe as the cause:\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"System Settings > General > Login Items & Extensions\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"Find \",(0,i.jsx)(e.strong,{children:\"Adobe Creative Cloud\"}),\" and \",(0,i.jsx)(e.strong,{children:\"Adobe Inc\"})]}),`\n`,(0,i.jsx)(e.li,{children:\"Turn OFF both entries\"}),`\n`,(0,i.jsx)(e.li,{children:\"Restart your Mac\"}),`\n`,(0,i.jsx)(e.li,{children:\"Test Spotlight\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"fix-for-logitech-options\",children:\"Fix for Logitech Options+\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Disable Logitech daemons\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"launchctl\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" disable\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" gui/\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"$(\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"id\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -u\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\")\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\"/com.logi.manager.daemon\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"launchctl\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" disable\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" gui/\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"$(\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"id\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -u\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\")\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\"/com.logi.optionsplus.updater\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Restart required\"})})]})})}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"method-6-boot-into-safe-mode\",children:\"Method 6: Boot into Safe Mode\"}),`\n`,(0,i.jsx)(e.p,{children:\"Safe Mode disables third-party software and performs system checks:\"}),`\n`,(0,i.jsx)(e.h3,{id:\"for-apple-silicon-macs-m1m2m3m4\",children:\"For Apple Silicon Macs (M1/M2/M3/M4)\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Shut down your Mac completely\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"Press and hold the \",(0,i.jsx)(e.strong,{children:\"power button\"}),' until \"Loading startup options\" appears']}),`\n`,(0,i.jsx)(e.li,{children:\"Select your startup disk\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"Hold \",(0,i.jsx)(e.strong,{children:\"Shift\"}),' and click \"Continue in Safe Mode\"']}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"for-intel-macs\",children:\"For Intel Macs\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Shut down your Mac\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"Press power button, then immediately hold \",(0,i.jsx)(e.strong,{children:\"Shift\"})]}),`\n`,(0,i.jsx)(e.li,{children:\"Release Shift when you see the login window\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"in-safe-mode\",children:\"In Safe Mode\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Test if Spotlight works correctly\"}),`\n`,(0,i.jsx)(e.li,{children:\"If yes, a third-party app is likely the cause\"}),`\n`,(0,i.jsx)(e.li,{children:\"Restart normally and investigate Login Items\"}),`\n`]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"method-7-nuclear-option---complete-spotlight-reset\",children:\"Method 7: Nuclear Option - Complete Spotlight Reset\"}),`\n`,(0,i.jsx)(e.p,{children:\"Use this only when all other methods fail:\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# 1. Disable all indexing\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -a\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" off\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# 2. Stop Spotlight service\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" launchctl\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" unload\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -w\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /System/Library/LaunchDaemons/com.apple.metadata.mds.plist\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# 3. Remove ALL Spotlight folders\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" rm\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -rf\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /.Spotlight-V100\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" rm\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -rf\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /System/Volumes/Data/.Spotlight-V100\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# 4. Remove user-specific Spotlight data\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"rm\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -rf\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" ~/Library/Metadata/CoreSpotlight\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# 5. Restart Spotlight service\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" launchctl\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" load\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -w\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /System/Library/LaunchDaemons/com.apple.metadata.mds.plist\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# 6. Re-enable indexing\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -a\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" on\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# 7. Force rebuild all volumes\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -Ea\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# 8. Verify\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -avs\"})]})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"recovery-mode-rebuild-last-resort\",children:\"Recovery Mode Rebuild (Last Resort)\"}),`\n`,(0,i.jsx)(e.p,{children:\"If Terminal commands fail due to SIP:\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[\"Restart Mac and enter \",(0,i.jsx)(e.strong,{children:\"Recovery Mode\"}),\":\",`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Apple Silicon: Hold power button until options appear, then hold Shift\"}),`\n`,(0,i.jsx)(e.li,{children:\"Intel: Hold Cmd+R during startup\"}),`\n`]}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Select \",(0,i.jsx)(e.strong,{children:\"Utilities > Terminal\"})]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Run: \",(0,i.jsx)(e.code,{children:\"rm -rf /System/Volumes/Data/.Spotlight-V100\"})]}),`\n`,(0,i.jsx)(e.li,{children:\"Restart normally\"}),`\n`,(0,i.jsx)(e.li,{children:\"System will automatically rebuild index\"}),`\n`]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"spotlight-index-structure-explained\",children:\"Spotlight Index Structure Explained\"}),`\n`,(0,i.jsx)(e.p,{children:\"Understanding the index helps troubleshoot problems:\"}),`\n`,(0,i.jsx)(e.h3,{id:\"index-location\",children:\"Index Location\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"M 6,1 C 4.354992,1 3,2.354992 3,4 v 16 c 0,1.645008 1.354992,3 3,3 h 12 c 1.645008,0 3,-1.354992 3,-3 V 8 7 A 1.0001,1.0001 0 0 0 20.707031,6.2929687 l -5,-5 A 1.0001,1.0001 0 0 0 15,1 h -1 z m 0,2 h 7 v 3 c 0,1.645008 1.354992,3 3,3 h 3 v 11 c 0,0.564129 -0.435871,1 -1,1 H 6 C 5.4358712,21 5,20.564129 5,20 V 4 C 5,3.4358712 5.4358712,3 6,3 Z M 15,3.4140625 18.585937,7 H 16 C 15.435871,7 15,6.5641288 15,6 Z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"/.Spotlight-V100/\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"\\u2514\\u2500\\u2500 Store-V2/\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"    \\u2514\\u2500\\u2500 ${UUID}/\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u251C\\u2500\\u2500 store.db           # Main SQLite database\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u251C\\u2500\\u2500 .store.db          # Hidden database file\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u251C\\u2500\\u2500 dbStr-#.map.*      # Index mappings\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u2514\\u2500\\u2500 [~99 other files]  # Dictionaries, postings\"})})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"check-index-size\",children:\"Check Index Size\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsx)(e.code,{children:(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" du\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -sh\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /.Spotlight-V100\"})]})})})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Expected sizes:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Small system: 50-200 MB\"}),`\n`,(0,i.jsx)(e.li,{children:\"Medium system: 200-500 MB\"}),`\n`,(0,i.jsx)(e.li,{children:\"Large system: 500 MB - 5 GB\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Warning signs:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"20+ GB indicates potential problems\"}),`\n`,(0,i.jsx)(e.li,{children:\"80+ GB almost certainly corrupted\"}),`\n`]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"advanced-diagnostics-understanding-whats-going-wrong\",children:\"Advanced Diagnostics: Understanding What's Going Wrong\"}),`\n`,(0,i.jsx)(e.h3,{id:\"using-terminal-to-monitor-spotlight-activity\",children:\"Using Terminal to Monitor Spotlight Activity\"}),`\n`,(0,i.jsx)(e.p,{children:\"When basic troubleshooting doesn't reveal the problem, these diagnostic commands help identify what Spotlight is doing:\"}),`\n`,(0,i.jsx)(e.h4,{id:\"check-which-files-are-being-indexed\",children:\"Check Which Files Are Being Indexed\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Monitor Spotlight file operations in real-time\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" fs_usage\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -f\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" filesys\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mds\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mds_stores\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdworker\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" head\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -100\"})]})]})})}),`\n`,(0,i.jsx)(e.p,{children:\"This command shows you exactly which files Spotlight is currently processing. If you see it repeatedly accessing the same files, those files may be corrupted or causing issues.\"}),`\n`,(0,i.jsx)(e.h4,{id:\"view-spotlight-system-logs\",children:\"View Spotlight System Logs\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Check recent Spotlight-related log entries\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"log\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" show\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" --predicate\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:` 'process == \"mds\" OR process == \"mdworker\" OR process == \"mds_stores\"'`}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" --last\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" 1h\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Look specifically for errors\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"log\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" show\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" --predicate\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:` 'process == \"mdworker\"'`}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" --last\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" 1d\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" grep\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" error\"})]})]})})}),`\n`,(0,i.jsx)(e.p,{children:\"Common error patterns include:\"}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Importer crashes\"}),\" - Indicates a corrupted file causing repeated failures\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Permission denied\"}),\" - Files with incorrect permissions blocking indexing\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Timeout errors\"}),\" - Very large files taking too long to process\"]}),`\n`]}),`\n`,(0,i.jsx)(e.h4,{id:\"check-metadata-for-specific-files\",children:\"Check Metadata for Specific Files\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# View metadata attributes for a file\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"mdls\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /path/to/file\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Example output includes:\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# kMDItemContentType, kMDItemKind, kMDItemDisplayName\"})})]})})}),`\n`,(0,i.jsx)(e.p,{children:\"If a file shows minimal or corrupted metadata, it may be causing indexing problems.\"}),`\n`,(0,i.jsx)(e.h3,{id:\"identifying-problematic-files\",children:\"Identifying Problematic Files\"}),`\n`,(0,i.jsx)(e.p,{children:\"Sometimes a single corrupted file can cause Spotlight to hang or crash repeatedly:\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Step 1: Find files modified recently\"})}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# List files modified in last 24 hours\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"find\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -mtime\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -1\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -type\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" f\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" 2>\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\"/dev/null\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" head\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -50\"})]})]})})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Step 2: Check for files with special characters\"})}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Find files with unusual names that might confuse Spotlight\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"find\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -name\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:' \"*[^a-zA-Z0-9._-]*\"'}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -type\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" f\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" 2>\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\"/dev/null\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" head\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -20\"})]})]})})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Step 3: Look for very large files\"})}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Find files larger than 10GB\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"find\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -size\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" +10G\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -type\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" f\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" 2>\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\"/dev/null\"})]})]})})}),`\n`,(0,i.jsx)(e.p,{children:\"Large files like virtual machine disk images and video files take significantly longer to index and can cause high CPU usage.\"}),`\n`,(0,i.jsx)(e.h3,{id:\"understanding-the-spotlight-v100-folder\",children:\"Understanding the Spotlight-V100 Folder\"}),`\n`,(0,i.jsxs)(e.p,{children:[\"The \",(0,i.jsx)(e.code,{children:\".Spotlight-V100\"}),\" folder contains Spotlight's database and index files:\"]}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"M 6,1 C 4.354992,1 3,2.354992 3,4 v 16 c 0,1.645008 1.354992,3 3,3 h 12 c 1.645008,0 3,-1.354992 3,-3 V 8 7 A 1.0001,1.0001 0 0 0 20.707031,6.2929687 l -5,-5 A 1.0001,1.0001 0 0 0 15,1 h -1 z m 0,2 h 7 v 3 c 0,1.645008 1.354992,3 3,3 h 3 v 11 c 0,0.564129 -0.435871,1 -1,1 H 6 C 5.4358712,21 5,20.564129 5,20 V 4 C 5,3.4358712 5.4358712,3 6,3 Z M 15,3.4140625 18.585937,7 H 16 C 15.435871,7 15,6.5641288 15,6 Z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\".Spotlight-V100/\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"\\u251C\\u2500\\u2500 VolumeConfiguration.plist    # Volume-specific settings\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"\\u2514\\u2500\\u2500 Store-V2/\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"    \\u2514\\u2500\\u2500 {UUID}/                  # Unique store identifier\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u251C\\u2500\\u2500 store.db             # Main SQLite database\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u251C\\u2500\\u2500 .store.db            # Secondary database\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u251C\\u2500\\u2500 dbStr-1.map.buckets  # String map files\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u251C\\u2500\\u2500 dbStr-1.map.data\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u251C\\u2500\\u2500 dbStr-1.map.header\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u251C\\u2500\\u2500 dbStr-1.map.offsets\"})}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"        \\u2514\\u2500\\u2500 [additional index files]\"})})]})})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Key characteristics:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"store.db\"}),\": Contains the primary search index (usually 50-500 MB)\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"dbStr files\"}),\": Store string mappings for fast text search\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"VolumeConfiguration.plist\"}),\": Contains exclusion rules and settings\"]}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"calculating-expected-index-size\",children:\"Calculating Expected Index Size\"}),`\n`,(0,i.jsx)(e.p,{children:\"A healthy Spotlight index follows roughly this formula:\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"M 6,1 C 4.354992,1 3,2.354992 3,4 v 16 c 0,1.645008 1.354992,3 3,3 h 12 c 1.645008,0 3,-1.354992 3,-3 V 8 7 A 1.0001,1.0001 0 0 0 20.707031,6.2929687 l -5,-5 A 1.0001,1.0001 0 0 0 15,1 h -1 z m 0,2 h 7 v 3 c 0,1.645008 1.354992,3 3,3 h 3 v 11 c 0,0.564129 -0.435871,1 -1,1 H 6 C 5.4358712,21 5,20.564129 5,20 V 4 C 5,3.4358712 5.4358712,3 6,3 Z M 15,3.4140625 18.585937,7 H 16 C 15.435871,7 15,6.5641288 15,6 Z\" fill=\"currentColor\" /></svg>',children:(0,i.jsx)(e.code,{children:(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{children:\"Index Size \\u2248 (Number of Files \\xD7 0.5 KB) + (Text Content \\xD7 0.1)\"})})})})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Typical sizes by storage:\"})}),`\n`,(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:\"Storage Used\"}),(0,i.jsx)(e.th,{children:\"Files\"}),(0,i.jsx)(e.th,{children:\"Expected Index Size\"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"100 GB\"}),(0,i.jsx)(e.td,{children:\"50,000\"}),(0,i.jsx)(e.td,{children:\"50-150 MB\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"500 GB\"}),(0,i.jsx)(e.td,{children:\"200,000\"}),(0,i.jsx)(e.td,{children:\"150-400 MB\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"1 TB\"}),(0,i.jsx)(e.td,{children:\"500,000\"}),(0,i.jsx)(e.td,{children:\"300-800 MB\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"2 TB\"}),(0,i.jsx)(e.td,{children:\"1,000,000\"}),(0,i.jsx)(e.td,{children:\"500 MB - 1.5 GB\"})]})]})]}),`\n`,(0,i.jsx)(e.p,{children:\"If your index is significantly larger (5x or more), it's likely corrupted and needs rebuilding.\"}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"special-scenarios-and-solutions\",children:\"Special Scenarios and Solutions\"}),`\n`,(0,i.jsx)(e.h3,{id:\"spotlight-issues-after-macos-update\",children:\"Spotlight Issues After macOS Update\"}),`\n`,(0,i.jsx)(e.p,{children:\"macOS updates frequently cause Spotlight problems because:\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Index format changes\"}),\" - New macOS versions may use updated index formats\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Permission resets\"}),\" - System updates can modify file permissions\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Cache corruption\"}),\" - Old caches may conflict with new system processes\"]}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Recommended post-update procedure:\"})}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# After any major macOS update, proactively rebuild\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -E\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Then reset permissions if needed\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" diskutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" resetUserPermissions\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\" $(\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"id\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -u\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\")\"})]})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"spotlight-not-working-on-external-drives\",children:\"Spotlight Not Working on External Drives\"}),`\n`,(0,i.jsx)(e.p,{children:\"External drives often have Spotlight issues due to:\"}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"File system incompatibility\"}),\" - FAT32/exFAT drives reindex on every connection\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Permissions\"}),\" - External drives may have different ownership\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Encryption\"}),\" - Encrypted volumes require special handling\"]}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Fix for frequently-reconnected drives:\"})}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Convert to APFS or Mac OS Extended (Journaled) if possible\"}),`\n`,(0,i.jsx)(e.li,{children:\"Or add to Spotlight Privacy to prevent repeated indexing:\"}),`\n`]}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Prevent indexing of external drive\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" off\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /Volumes/ExternalDrive\"})]})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"spotlight-problems-with-filevault-encryption\",children:\"Spotlight Problems with FileVault Encryption\"}),`\n`,(0,i.jsx)(e.p,{children:\"FileVault encryption can affect Spotlight in several ways:\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Initial encryption\"}),\" - Index may be inaccessible during encryption\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Key issues\"}),\" - Corrupted keys can prevent Spotlight access\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Boot volume\"}),\" - Spotlight must decrypt files before indexing\"]}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"If Spotlight fails with FileVault:\"})}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Verify FileVault status:\"}),`\n`]}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsx)(e.code,{children:(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"fdesetup\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" status\"})]})})})}),`\n`,(0,i.jsxs)(e.ol,{start:\"2\",children:[`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsx)(e.p,{children:'Ensure encryption is complete (not \"Encryption in progress\")'}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsx)(e.p,{children:\"If stuck, try:\"}),`\n`]}),`\n`]}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Pause and resume FileVault\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" fdesetup\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" changerecovery\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -personal\"})]})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"network-drive-indexing-issues\",children:\"Network Drive Indexing Issues\"}),`\n`,(0,i.jsx)(e.p,{children:\"Spotlight has limited support for network volumes:\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"AFP shares\"}),\" (Apple Filing Protocol):\"]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Full Spotlight support with server-side indexing\"}),`\n`,(0,i.jsx)(e.li,{children:\"Requires macOS Server or compatible NAS\"}),`\n`]}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"SMB shares\"}),\" (Windows/Samba):\"]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Client-side indexing only\"}),`\n`,(0,i.jsx)(e.li,{children:\"May cause high network traffic\"}),`\n`,(0,i.jsx)(e.li,{children:\"Consider excluding from Spotlight\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Best practice for network drives:\"})}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Disable Spotlight for all network volumes\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"defaults\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" write\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /Library/Preferences/com.apple.SpotlightServer.plist\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" ExternalVolumesIgnore\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -bool\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" YES\"})]})]})})}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"performance-optimization-tips\",children:\"Performance Optimization Tips\"}),`\n`,(0,i.jsx)(e.h3,{id:\"reducing-spotlights-resource-usage\",children:\"Reducing Spotlight's Resource Usage\"}),`\n`,(0,i.jsx)(e.p,{children:\"If Spotlight is consuming too many resources even when working correctly:\"}),`\n`,(0,i.jsx)(e.h4,{id:\"limit-background-activity\",children:\"Limit Background Activity\"}),`\n`,(0,i.jsx)(e.p,{children:\"System Settings > Battery > Options:\"}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:'Enable \"Optimize video streaming while on battery\"'}),`\n`,(0,i.jsx)(e.li,{children:\"This also limits Spotlight's background processing\"}),`\n`]}),`\n`,(0,i.jsx)(e.h4,{id:\"schedule-intensive-indexing\",children:\"Schedule Intensive Indexing\"}),`\n`,(0,i.jsx)(e.p,{children:\"Large file imports should be done when you're not actively using the Mac:\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Plan major file transfers for overnight\"}),`\n`,(0,i.jsx)(e.li,{children:\"Keep Mac plugged in and awake during indexing\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"Use \",(0,i.jsx)(e.code,{children:\"caffeinate\"}),\" command to prevent sleep:\"]}),`\n`]}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Prevent sleep for 4 hours during indexing\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"caffeinate\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -t\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" 14400\"})]})]})})}),`\n`,(0,i.jsx)(e.h4,{id:\"optimize-what-gets-indexed\",children:\"Optimize What Gets Indexed\"}),`\n`,(0,i.jsx)(e.p,{children:\"Review and customize Spotlight categories:\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"System Settings > Siri & Spotlight\"}),`\n`,(0,i.jsxs)(e.li,{children:[`Under \"Search Results,\" disable categories you don't use:`,`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Fonts\"}),\" (rarely searched)\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Movies\"}),\" (if you don't use Apple TV app)\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Music\"}),\" (if you use Spotify instead)\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Other\"}),\" (miscellaneous files)\"]}),`\n`]}),`\n`]}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:\"Each disabled category reduces indexing overhead.\"}),`\n`,(0,i.jsx)(e.h3,{id:\"ssd-vs-hdd-performance-considerations\",children:\"SSD vs HDD Performance Considerations\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"SSD users:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Indexing completes 5-10x faster than HDD\"}),`\n`,(0,i.jsx)(e.li,{children:\"Continuous indexing has minimal performance impact\"}),`\n`,(0,i.jsx)(e.li,{children:\"No concern about disk wear from normal Spotlight usage\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"HDD users:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Schedule rebuilds during off-hours\"}),`\n`,(0,i.jsx)(e.li,{children:\"Consider adding frequently-accessed folders to SSD\"}),`\n`,(0,i.jsx)(e.li,{children:\"Exclude large media folders to reduce head movement\"}),`\n`]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"preventing-future-spotlight-problems\",children:\"Preventing Future Spotlight Problems\"}),`\n`,(0,i.jsx)(e.h3,{id:\"best-practices\",children:\"Best Practices\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Allow indexing to complete after updates\"}),` - Don't interrupt or force shutdown during \"Indexing...\" status`]}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Maintain adequate free space\"}),\" - Keep at least 15% of your drive free for Spotlight to work efficiently\"]}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Exclude unnecessary folders\"}),\" - Development directories, large archives, and temporary folders don't need indexing\"]}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Keep macOS updated\"}),\" - Apple regularly fixes Spotlight bugs in point releases\"]}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"Monitor disk health\"}),\" - Failing drives cause indexing problems\"]}),`\n`]}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"regular-maintenance\",children:\"Regular Maintenance\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Monthly:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Run Disk Utility First Aid\"}),`\n`,(0,i.jsx)(e.li,{children:\"Check Activity Monitor for abnormal Spotlight processes\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"After major changes:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Rebuild index after large file migrations\"}),`\n`,(0,i.jsx)(e.li,{children:\"Verify Spotlight works after macOS updates\"}),`\n`]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"when-to-consider-spotlight-alternatives\",children:\"When to Consider Spotlight Alternatives\"}),`\n`,(0,i.jsx)(e.p,{children:\"If Spotlight continues causing problems, consider these alternatives:\"}),`\n`,(0,i.jsx)(e.h3,{id:\"alfred-free--34-powerpack\",children:\"Alfred (Free / $34 Powerpack)\"}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"More powerful than Spotlight\"}),`\n`,(0,i.jsx)(e.li,{children:\"Customizable workflows\"}),`\n`,(0,i.jsx)(e.li,{children:\"Better file search and preview\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"raycast-free--8month-pro\",children:\"Raycast (Free / $8/month Pro)\"}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Modern, fast interface\"}),`\n`,(0,i.jsx)(e.li,{children:\"Extensive plugin ecosystem\"}),`\n`,(0,i.jsx)(e.li,{children:\"Developer-friendly features\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:\"Both alternatives can completely replace Spotlight for daily use while you wait for Apple to fix underlying issues.\"}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"troubleshooting-faq\",children:\"Troubleshooting FAQ\"}),`\n`,(0,i.jsx)(e.h3,{id:\"q-how-long-should-spotlight-indexing-take\",children:\"Q: How long should Spotlight indexing take?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": For most users with 256GB-1TB SSDs, expect 2-8 hours for a complete rebuild. Leave your Mac powered on overnight for best results. Factors affecting time include:\"]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Number of files (more files = longer indexing)\"}),`\n`,(0,i.jsx)(e.li,{children:\"File types (documents with text take longer than images)\"}),`\n`,(0,i.jsx)(e.li,{children:\"System activity (indexing pauses during intensive tasks)\"}),`\n`,(0,i.jsx)(e.li,{children:\"Storage speed (SSD is 5-10x faster than HDD)\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"q-will-rebuilding-spotlight-delete-my-files\",children:\"Q: Will rebuilding Spotlight delete my files?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": No. Rebuilding only affects the search index, not your actual files. Your documents, photos, and applications are completely safe. The index is simply a database that helps Spotlight find your files faster\\u2014deleting it just means Spotlight needs to re-catalog everything.\"]}),`\n`,(0,i.jsx)(e.h3,{id:\"q-why-does-mds_stores-use-high-cpu-after-every-restart\",children:\"Q: Why does mds_stores use high CPU after every restart?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": This indicates an underlying issue\\u2014possibly a corrupted index or third-party software conflict. Common causes include:\"]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Third-party applications interfering with indexing\"}),`\n`,(0,i.jsx)(e.li,{children:\"Corrupted files causing repeated index failures\"}),`\n`,(0,i.jsx)(e.li,{children:\"Insufficient disk space for the index\"}),`\n`,(0,i.jsx)(e.li,{children:\"Software conflicts from recent installations\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:\"Follow the troubleshooting steps in this guide to resolve it permanently.\"}),`\n`,(0,i.jsx)(e.h3,{id:\"q-can-i-use-my-mac-while-spotlight-indexes\",children:\"Q: Can I use my Mac while Spotlight indexes?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": Yes, but performance may be slightly reduced. Spotlight prioritizes background processing and pauses during intensive tasks. However, you might notice:\"]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Slightly slower app launches\"}),`\n`,(0,i.jsx)(e.li,{children:\"Increased fan noise\"}),`\n`,(0,i.jsx)(e.li,{children:\"Higher battery consumption on laptops\"}),`\n`,(0,i.jsx)(e.li,{children:\"Occasional brief system slowdowns\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"q-what-if-spotlight-still-doesnt-work-after-trying-everything\",children:\"Q: What if Spotlight still doesn't work after trying everything?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": Consider these escalation steps:\"]}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Create a new user account\"}),\" to test if the issue is account-specific\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Check disk health\"}),\" with Disk Utility or third-party tools\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Reinstall macOS\"}),\" (without erasing data) using Recovery Mode\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Contact Apple Support\"}),\" for hardware diagnostics if you suspect drive failure\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Use Spotlight alternatives\"}),\" like Alfred or Raycast while waiting for Apple to fix bugs\"]}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"q-is-it-safe-to-completely-disable-spotlight\",children:\"Q: Is it safe to completely disable Spotlight?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": Yes, you can disable Spotlight without damaging your system. However, be aware that disabling Spotlight also affects:\"]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Siri's ability to search your Mac\"}),`\n`,(0,i.jsx)(e.li,{children:\"Some third-party apps that rely on Spotlight indexing\"}),`\n`,(0,i.jsx)(e.li,{children:\"Quick Look file previews in Finder\"}),`\n`,(0,i.jsx)(e.li,{children:\"Mail's search functionality (uses its own index but benefits from Spotlight)\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:\"To disable completely:\"}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsx)(e.code,{children:(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -a\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" off\"})]})})})}),`\n`,(0,i.jsx)(e.h3,{id:\"q-how-do-i-know-if-spotlight-has-finished-indexing\",children:\"Q: How do I know if Spotlight has finished indexing?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": Several ways to check:\"]}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:'Open Spotlight (Cmd+Space) and look for \"Indexing...\" progress bar'}),`\n`,(0,i.jsxs)(e.li,{children:[\"Run \",(0,i.jsx)(e.code,{children:\"mdutil -s /\"}),' in Terminal - should show \"Indexing enabled\" without \"indexing\" status']}),`\n`,(0,i.jsx)(e.li,{children:\"Check Activity Monitor - mds_stores should have low CPU usage when complete\"}),`\n`,(0,i.jsx)(e.li,{children:\"Search results should be comprehensive and accurate\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"q-why-does-spotlight-keep-re-indexing-the-same-external-drive\",children:\"Q: Why does Spotlight keep re-indexing the same external drive?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": This usually happens with FAT32 or exFAT formatted drives. Solutions:\"]}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Reformat the drive to APFS or Mac OS Extended if possible\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"Add the drive to Spotlight Privacy to prevent indexing:\",`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"System Settings > Siri & Spotlight > Spotlight Privacy\"}),`\n`,(0,i.jsx)(e.li,{children:\"Add the external drive\"}),`\n`]}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[\"Create a \",(0,i.jsx)(e.code,{children:\".metadata_never_index\"}),\" file in the drive's root folder\"]}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"q-does-spotlight-index-cloud-storage-like-icloud-drive\",children:\"Q: Does Spotlight index cloud storage like iCloud Drive?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": Yes, but with limitations:\"]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Local files\"}),\": Fully indexed and searchable\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Cloud-only files\"}),\" (with cloud icon): Metadata indexed, but content not searchable until downloaded\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"iCloud Photo Library\"}),\": Photos indexed locally, but requires download for full content search\"]}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:\"To ensure complete indexing of important iCloud files, download them locally first.\"}),`\n`,(0,i.jsx)(e.h3,{id:\"q-can-spotlight-issues-cause-other-system-problems\",children:\"Q: Can Spotlight issues cause other system problems?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": Yes, runaway Spotlight processes can cause:\"]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"High CPU usage\"}),\": Making your Mac slow and unresponsive\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Excessive battery drain\"}),\": Especially problematic on laptops\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"SSD wear\"}),\": In extreme cases (like the Sequoia bug), writing terabytes of unnecessary data\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Memory pressure\"}),\": mdworker processes can consume significant RAM\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Thermal throttling\"}),\": Continuous high CPU can cause overheating\"]}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:\"This is why it's important to address Spotlight issues promptly rather than ignoring them.\"}),`\n`,(0,i.jsx)(e.h3,{id:\"q-are-there-any-differences-between-intel-and-apple-silicon-macs\",children:\"Q: Are there any differences between Intel and Apple Silicon Macs?\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"A\"}),\": Minor differences exist:\"]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Apple Silicon\"}),\": Generally faster indexing due to unified memory architecture\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Intel Macs\"}),\": May experience higher CPU temperatures during indexing\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Recovery Mode access\"}),\": Different key combinations (see Method 6)\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"SIP handling\"}),\": Some terminal commands work differently on newer systems\"]}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:\"The troubleshooting methods in this guide work for both architectures.\"}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"understanding-error-messages\",children:\"Understanding Error Messages\"}),`\n`,(0,i.jsx)(e.h3,{id:\"common-spotlight-error-messages-and-solutions\",children:\"Common Spotlight Error Messages and Solutions\"}),`\n`,(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:\"Error Message\"}),(0,i.jsx)(e.th,{children:\"Meaning\"}),(0,i.jsx)(e.th,{children:\"Solution\"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:'\"Indexing is disabled\"'}),(0,i.jsx)(e.td,{children:\"Spotlight manually turned off\"}),(0,i.jsxs)(e.td,{children:[\"Run \",(0,i.jsx)(e.code,{children:\"sudo mdutil -i on /\"})]})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:'\"Unknown error\"'}),(0,i.jsx)(e.td,{children:\"Permission issues\"}),(0,i.jsx)(e.td,{children:\"Check file/folder permissions\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:'\"Operation not permitted\"'}),(0,i.jsx)(e.td,{children:\"SIP blocking command\"}),(0,i.jsx)(e.td,{children:\"Try alternative method or use Recovery Mode\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:'\"Indexing paused\"'}),(0,i.jsx)(e.td,{children:\"Low power or low disk space\"}),(0,i.jsx)(e.td,{children:\"Charge Mac and free up space\"})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:'\"No index found\"'}),(0,i.jsx)(e.td,{children:\"Index corrupted or missing\"}),(0,i.jsxs)(e.td,{children:[\"Rebuild with \",(0,i.jsx)(e.code,{children:\"sudo mdutil -E /\"})]})]})]})]}),`\n`,(0,i.jsx)(e.h3,{id:\"interpreting-activity-monitor-data\",children:\"Interpreting Activity Monitor Data\"}),`\n`,(0,i.jsx)(e.p,{children:\"When monitoring Spotlight processes:\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Normal behavior:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"mds: 0-5% CPU when idle\"}),`\n`,(0,i.jsx)(e.li,{children:\"mds_stores: 0-10% CPU when idle\"}),`\n`,(0,i.jsx)(e.li,{children:\"mdworker: 0-50% CPU, multiple instances during active indexing\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Problematic behavior:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Any process consistently above 100% CPU for more than 1 hour\"}),`\n`,(0,i.jsx)(e.li,{children:\"Dozens of mdworker instances running simultaneously\"}),`\n`,(0,i.jsx)(e.li,{children:\"Memory usage exceeding 1GB for mds_stores\"}),`\n`]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"macos-version-specific-issues\",children:\"macOS Version-Specific Issues\"}),`\n`,(0,i.jsx)(e.h3,{id:\"macos-tahoe-26\",children:\"macOS Tahoe 26\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Known issues:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Touch ID clipboard bug (use password login as workaround)\"}),`\n`,(0,i.jsx)(e.li,{children:\"Adobe Creative Cloud conflicts\"}),`\n`,(0,i.jsx)(e.li,{children:\"Occasional indexing failures after 26.0 > 26.1 update\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Recommended fix after update:\"})}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"sudo\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" mdutil\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -E\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Wait 24 hours for complete reindex\"})})]})})}),`\n`,(0,i.jsx)(e.h3,{id:\"macos-sequoia-15\",children:\"macOS Sequoia 15\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Known issues:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Excessive SSD writes bug (fixed in 15.1)\"}),`\n`,(0,i.jsx)(e.li,{children:\"Apps not appearing in search after update\"}),`\n`,(0,i.jsx)(e.li,{children:\"Logi Options+ conflict\"}),`\n`]}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"If coming from Sequoia 15.0:\"}),`\nUpdate to 15.1 or later immediately, then rebuild index.`]}),`\n`,(0,i.jsx)(e.h3,{id:\"macos-sonoma-14\",children:\"macOS Sonoma 14\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Known issues:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[\"Index location sometimes at \",(0,i.jsx)(e.code,{children:\"~/.Spotlight-V100\"})]}),`\n`,(0,i.jsx)(e.li,{children:\"Some users report index at non-standard paths\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Check all possible locations:\"})}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"ls\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -la\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /.Spotlight-V100\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"ls\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -la\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /System/Volumes/Data/.Spotlight-V100\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"ls\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -la\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" ~/.Spotlight-V100\"})]})]})})}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"expert-tips-and-best-practices\",children:\"Expert Tips and Best Practices\"}),`\n`,(0,i.jsx)(e.h3,{id:\"for-developers\",children:\"For Developers\"}),`\n`,(0,i.jsx)(e.p,{children:\"If you work with code repositories, consider these optimizations:\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"1. Exclude development directories:\"}),`\nAdd these paths to Spotlight Privacy:`]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:\"/Users/[username]/node_modules\"}),\" (or use global exclusion)\"]}),`\n`,(0,i.jsx)(e.li,{children:\"Project directories with heavy build outputs\"}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:\".git\"}),\" folders across all repositories\"]}),`\n`,(0,i.jsx)(e.li,{children:\"Virtual environment directories (venv, .venv)\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"2. Create global gitignore-style Spotlight exclusion:\"})}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Create exclusion file in project roots\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"touch\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" /path/to/project/.metadata_never_index\"})]}),`\n`,(0,i.jsx)(e.span,{className:\"line\"}),`\n`,(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"# Or use Terminal to exclude all node_modules\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"find\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" ~\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -type\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" d\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -name\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:' \"node_modules\"'}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -exec\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" touch\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" {}/.metadata_never_index\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" \\\\;\"})]})]})})}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"3. Use project-specific search tools:\"}),`\nInstead of relying on Spotlight for code search, use:`]}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"VS Code's built-in search (Cmd+Shift+F)\"}),`\n`,(0,i.jsxs)(e.li,{children:[\"ripgrep (\",(0,i.jsx)(e.code,{children:\"rg\"}),\") for command-line search\"]}),`\n`,(0,i.jsx)(e.li,{children:\"IDE-specific indexing (Xcode, IntelliJ)\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"for-creative-professionals\",children:\"For Creative Professionals\"}),`\n`,(0,i.jsx)(e.p,{children:\"Large media files require special handling:\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"1. Separate working and archive storage:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Keep active project files on indexed drives\"}),`\n`,(0,i.jsx)(e.li,{children:\"Move completed projects to non-indexed archive drives\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"2. Optimize for video/photo workflows:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Final Cut Pro and Premiere Pro maintain their own media databases\"}),`\n`,(0,i.jsx)(e.li,{children:\"Consider excluding application library folders from Spotlight\"}),`\n`,(0,i.jsx)(e.li,{children:\"Use application-specific search for media files\"}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"3. Manage large photo libraries:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Photos app has its own search independent of Spotlight\"}),`\n`,(0,i.jsx)(e.li,{children:\"Consider using Smart Albums instead of Spotlight for photo organization\"}),`\n`,(0,i.jsx)(e.li,{children:\"Exclude external photo archives from indexing\"}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"for-system-administrators\",children:\"For System Administrators\"}),`\n`,(0,i.jsx)(e.p,{children:\"Managing Spotlight across multiple Macs:\"}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"1. Deploy consistent exclusion settings:\"}),`\nUse MDM (Mobile Device Management) to deploy Spotlight configuration:`]}),`\n`,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(e.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"M 6,1 C 4.354992,1 3,2.354992 3,4 v 16 c 0,1.645008 1.354992,3 3,3 h 12 c 1.645008,0 3,-1.354992 3,-3 V 8 7 A 1.0001,1.0001 0 0 0 20.707031,6.2929687 l -5,-5 A 1.0001,1.0001 0 0 0 15,1 h -1 z m 0,2 h 7 v 3 c 0,1.645008 1.354992,3 3,3 h 3 v 11 c 0,0.564129 -0.435871,1 -1,1 H 6 C 5.4358712,21 5,20.564129 5,20 V 4 C 5,3.4358712 5.4358712,3 6,3 Z M 15,3.4140625 18.585937,7 H 16 C 15.435871,7 15,6.5641288 15,6 Z\" fill=\"currentColor\" /></svg>',children:(0,i.jsxs)(e.code,{children:[(0,i.jsx)(e.span,{className:\"line\",children:(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#6A737D\",\"--shiki-dark\":\"#6A737D\"},children:\"<!-- Example MDM profile for Spotlight -->\"})}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"<\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"key\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">PayloadType</\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"key\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"<\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"string\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">com.apple.spotlight</\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"string\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"<\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"key\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">items</\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"key\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"<\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"array\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"    <\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"string\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">/Users/Shared/</\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"string\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"    <\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"string\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">/opt/</\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"string\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">\"})]}),`\n`,(0,i.jsxs)(e.span,{className:\"line\",children:[(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"</\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#22863A\",\"--shiki-dark\":\"#85E89D\"},children:\"array\"}),(0,i.jsx)(e.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\">\"})]})]})})}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"2. Monitor fleet-wide Spotlight health:\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Use scripts to check index sizes across machines\"}),`\n`,(0,i.jsx)(e.li,{children:\"Alert on machines with abnormally large indexes\"}),`\n`,(0,i.jsx)(e.li,{children:\"Schedule regular index rebuilds during maintenance windows\"}),`\n`]}),`\n`,(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.strong,{children:\"3. Standardize troubleshooting procedures:\"}),`\nDocument and automate common fixes for helpdesk staff.`]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"summary-quick-reference-card\",children:\"Summary: Quick Reference Card\"}),`\n`,(0,i.jsx)(e.h3,{id:\"essential-terminal-commands\",children:\"Essential Terminal Commands\"}),`\n`,(0,i.jsxs)(e.table,{children:[(0,i.jsx)(e.thead,{children:(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.th,{children:\"Action\"}),(0,i.jsx)(e.th,{children:\"Command\"})]})}),(0,i.jsxs)(e.tbody,{children:[(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"Check status\"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"mdutil -s /\"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"Rebuild index\"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"sudo mdutil -E /\"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"Disable Spotlight\"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"sudo mdutil -a -i off\"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"Enable Spotlight\"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"sudo mdutil -a -i on\"})})]}),(0,i.jsxs)(e.tr,{children:[(0,i.jsx)(e.td,{children:\"Check index size\"}),(0,i.jsx)(e.td,{children:(0,i.jsx)(e.code,{children:\"sudo du -sh /.Spotlight-V100\"})})]})]})]}),`\n`,(0,i.jsx)(e.h3,{id:\"troubleshooting-flowchart\",children:\"Troubleshooting Flowchart\"}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Spotlight not working?\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Try Privacy toggle method first (Method 1)\"}),`\n`]}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Privacy toggle didn't help?\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[\"Use Terminal rebuild: \",(0,i.jsx)(e.code,{children:\"sudo mdutil -E /\"}),\" (Method 2)\"]}),`\n`]}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"High CPU from mds_stores?\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Wait 45 minutes, then exclude folders (Method 3)\"}),`\n`]}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Still having issues?\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Check third-party conflicts (Method 5)\"}),`\n`]}),`\n`]}),`\n`,(0,i.jsxs)(e.li,{children:[`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Nothing works?\"})}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsx)(e.li,{children:\"Complete reset (Method 7) or use alternatives\"}),`\n`]}),`\n`]}),`\n`]}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"conclusion\",children:\"Conclusion\"}),`\n`,(0,i.jsx)(e.p,{children:\"Spotlight search problems are frustrating but almost always fixable. Start with the simple System Settings method, progress to Terminal commands if needed, and check for third-party software conflicts. Most users resolve their Spotlight issues within the first few troubleshooting steps.\"}),`\n`,(0,i.jsx)(e.p,{children:\"Remember that after any rebuild, Spotlight needs time to reindex\\u2014typically several hours for a full system. Be patient, and your search functionality will return to normal.\"}),`\n`,(0,i.jsx)(e.p,{children:\"Whether you're a casual user frustrated by missing search results, a developer dealing with high CPU usage from node_modules indexing, or an IT administrator managing a fleet of Macs, the solutions in this guide should help restore Spotlight to its intended functionality. Keep this guide bookmarked for future reference, and remember that Apple continuously improves Spotlight with each macOS update.\"}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsx)(e.strong,{children:\"Key Takeaways:\"})}),`\n`,(0,i.jsxs)(e.ol,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"First try\"}),\": System Settings > Siri & Spotlight > Privacy toggle method\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"For persistent issues\"}),\": Use Terminal command \",(0,i.jsx)(e.code,{children:\"sudo mdutil -E /\"})]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"High CPU\"}),\": Wait for indexing to complete, or exclude unnecessary folders\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Third-party conflicts\"}),\": Check Adobe, Logitech, and antivirus software\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:\"Nuclear option\"}),\": Complete Spotlight reset via Terminal or Recovery Mode\"]}),`\n`]}),`\n`,(0,i.jsx)(e.p,{children:(0,i.jsxs)(e.em,{children:[\"Having other macOS issues? Check our comprehensive guides on \",(0,i.jsx)(e.a,{href:\"/blog/macos-tahoe-troubleshooting-guide-complete-solutions\",children:\"general troubleshooting\"}),\", \",(0,i.jsx)(e.a,{href:\"/blog/macos-tahoe-storage-management-optimization-guide-2025\",children:\"storage management\"}),\", and \",(0,i.jsx)(e.a,{href:\"/blog/macos-tahoe-battery-diagnostics-advanced-guide\",children:\"battery optimization\"}),\" for more solutions.\"]})}),`\n`,(0,i.jsx)(e.hr,{}),`\n`,(0,i.jsx)(e.h2,{id:\"related-resources\",children:\"Related Resources\"}),`\n`,(0,i.jsx)(e.h3,{id:\"troubleshooting-guides\",children:\"Troubleshooting Guides\"}),`\n`,(0,i.jsx)(e.p,{children:\"If you're experiencing other macOS Tahoe issues, these guides may help:\"}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:(0,i.jsx)(e.a,{href:\"/blog/macos-tahoe-wifi-dropping-complete-fix-guide-2025\",children:\"WiFi Dropping Fix Guide\"})}),\" - Solutions for WiFi connection problems\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:(0,i.jsx)(e.a,{href:\"/blog/macos-tahoe-bluetooth-troubleshooting-complete-guide-2025\",children:\"Bluetooth Troubleshooting\"})}),\" - Fix AirPods and device pairing issues\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:(0,i.jsx)(e.a,{href:\"/blog/macos-tahoe-time-machine-complete-troubleshooting-guide-2025\",children:\"Time Machine Problems\"})}),\" - Resolve backup failures\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:(0,i.jsx)(e.a,{href:\"/blog/mac-mail-not-working-complete-troubleshooting-fix-guide-2025\",children:\"Mail App Issues\"})}),\" - Fix Mail app problems\"]}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"system-optimization\",children:\"System Optimization\"}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:(0,i.jsx)(e.a,{href:\"/blog/macos-tahoe-storage-management-optimization-guide-2025\",children:\"Storage Management\"})}),\" - Free up disk space\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:(0,i.jsx)(e.a,{href:\"/blog/macos-tahoe-battery-diagnostics-advanced-guide\",children:\"Battery Diagnostics\"})}),\" - Optimize battery life\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:(0,i.jsx)(e.a,{href:\"/blog/macos-tahoe-login-items-background-apps-complete-management-guide-2025\",children:\"Login Items Management\"})}),\" - Control startup items\"]}),`\n`]}),`\n`,(0,i.jsx)(e.h3,{id:\"recovery-options\",children:\"Recovery Options\"}),`\n`,(0,i.jsxs)(e.ul,{children:[`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:(0,i.jsx)(e.a,{href:\"/blog/downgrade-macos-tahoe-to-sequoia-complete-guide-2025\",children:\"Downgrade to Sequoia\"})}),\" - If Tahoe isn't working for you\"]}),`\n`,(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.strong,{children:(0,i.jsx)(e.a,{href:\"/blog/createinstallmedia-complete-guide-2025\",children:\"createinstallmedia Guide\"})}),\" - Create bootable USB installer\"]}),`\n`]})]})}function o(n={}){let{wrapper:e}=n.components||{};return e?(0,i.jsx)(e,{...n,children:(0,i.jsx)(c,{...n})}):c(n)}return b(C);})();\n;return Component;","toc":[{"title":"Quick Summary: Spotlight Troubleshooting Solutions","url":"#quick-summary-spotlight-troubleshooting-solutions","depth":2},{"title":"Understanding Spotlight and Its Components","url":"#understanding-spotlight-and-its-components","depth":2},{"title":"What is Spotlight?","url":"#what-is-spotlight","depth":3},{"title":"Key Spotlight Processes","url":"#key-spotlight-processes","depth":3},{"title":"Common Spotlight Problems on macOS Tahoe 26","url":"#common-spotlight-problems-on-macos-tahoe-26","depth":2},{"title":"Problem 1: Spotlight Not Finding Apps","url":"#problem-1-spotlight-not-finding-apps","depth":3},{"title":"Problem 2: mds_stores High CPU Usage","url":"#problem-2-mds_stores-high-cpu-usage","depth":3},{"title":"Problem 3: Excessive Disk Writes (Sequoia Bug)","url":"#problem-3-excessive-disk-writes-sequoia-bug","depth":3},{"title":"Problem 4: Spotlight Indexing Stuck","url":"#problem-4-spotlight-indexing-stuck","depth":3},{"title":"Problem 5: Touch ID Bug (macOS Tahoe Specific)","url":"#problem-5-touch-id-bug-macos-tahoe-specific","depth":3},{"title":"Method 1: Rebuild Spotlight Index via System Settings","url":"#method-1-rebuild-spotlight-index-via-system-settings","depth":2},{"title":"Step-by-Step Instructions","url":"#step-by-step-instructions","depth":3},{"title":"Expected Indexing Times","url":"#expected-indexing-times","depth":3},{"title":"Method 2: Terminal Commands for Spotlight Rebuild","url":"#method-2-terminal-commands-for-spotlight-rebuild","depth":2},{"title":"Basic Commands","url":"#basic-commands","depth":3},{"title":"Check Spotlight Status","url":"#check-spotlight-status","depth":4},{"title":"Simple Index Rebuild","url":"#simple-index-rebuild","depth":4},{"title":"Rebuild External Drive Index","url":"#rebuild-external-drive-index","depth":4},{"title":"Advanced Rebuild (For Persistent Problems)","url":"#advanced-rebuild-for-persistent-problems","depth":3},{"title":"Complete mdutil Command Reference","url":"#complete-mdutil-command-reference","depth":3},{"title":"Method 3: Fix mds_stores High CPU Usage","url":"#method-3-fix-mds_stores-high-cpu-usage","depth":2},{"title":"Quick Fixes","url":"#quick-fixes","depth":3},{"title":"1. Restart Your Mac","url":"#1-restart-your-mac","depth":4},{"title":"2. Wait for Indexing to Complete","url":"#2-wait-for-indexing-to-complete","depth":4},{"title":"3. Temporarily Disable Spotlight","url":"#3-temporarily-disable-spotlight","depth":4},{"title":"Exclude Folders from Spotlight Indexing","url":"#exclude-folders-from-spotlight-indexing","depth":3},{"title":"Via Terminal (Alternative Method)","url":"#via-terminal-alternative-method","depth":4},{"title":"Run Disk Utility First Aid","url":"#run-disk-utility-first-aid","depth":3},{"title":"Method 4: Force Quit and Restart Spotlight Processes","url":"#method-4-force-quit-and-restart-spotlight-processes","depth":2},{"title":"Using Activity Monitor","url":"#using-activity-monitor","depth":3},{"title":"Using Terminal","url":"#using-terminal","depth":3},{"title":"Restart mds Service","url":"#restart-mds-service","depth":3},{"title":"Method 5: Check for Third-Party Software Conflicts","url":"#method-5-check-for-third-party-software-conflicts","depth":2},{"title":"Known Culprits","url":"#known-culprits","depth":3},{"title":"How to Identify the Culprit","url":"#how-to-identify-the-culprit","depth":3},{"title":"Fix for Adobe Creative Cloud","url":"#fix-for-adobe-creative-cloud","depth":3},{"title":"Fix for Logitech Options+","url":"#fix-for-logitech-options","depth":3},{"title":"Method 6: Boot into Safe Mode","url":"#method-6-boot-into-safe-mode","depth":2},{"title":"For Apple Silicon Macs (M1/M2/M3/M4)","url":"#for-apple-silicon-macs-m1m2m3m4","depth":3},{"title":"For Intel Macs","url":"#for-intel-macs","depth":3},{"title":"In Safe Mode","url":"#in-safe-mode","depth":3},{"title":"Method 7: Nuclear Option - Complete Spotlight Reset","url":"#method-7-nuclear-option---complete-spotlight-reset","depth":2},{"title":"Recovery Mode Rebuild (Last Resort)","url":"#recovery-mode-rebuild-last-resort","depth":3},{"title":"Spotlight Index Structure Explained","url":"#spotlight-index-structure-explained","depth":2},{"title":"Index Location","url":"#index-location","depth":3},{"title":"Check Index Size","url":"#check-index-size","depth":3},{"title":"Advanced Diagnostics: Understanding What's Going Wrong","url":"#advanced-diagnostics-understanding-whats-going-wrong","depth":2},{"title":"Using Terminal to Monitor Spotlight Activity","url":"#using-terminal-to-monitor-spotlight-activity","depth":3},{"title":"Check Which Files Are Being Indexed","url":"#check-which-files-are-being-indexed","depth":4},{"title":"View Spotlight System Logs","url":"#view-spotlight-system-logs","depth":4},{"title":"Check Metadata for Specific Files","url":"#check-metadata-for-specific-files","depth":4},{"title":"Identifying Problematic Files","url":"#identifying-problematic-files","depth":3},{"title":"Understanding the Spotlight-V100 Folder","url":"#understanding-the-spotlight-v100-folder","depth":3},{"title":"Calculating Expected Index Size","url":"#calculating-expected-index-size","depth":3},{"title":"Special Scenarios and Solutions","url":"#special-scenarios-and-solutions","depth":2},{"title":"Spotlight Issues After macOS Update","url":"#spotlight-issues-after-macos-update","depth":3},{"title":"Spotlight Not Working on External Drives","url":"#spotlight-not-working-on-external-drives","depth":3},{"title":"Spotlight Problems with FileVault Encryption","url":"#spotlight-problems-with-filevault-encryption","depth":3},{"title":"Network Drive Indexing Issues","url":"#network-drive-indexing-issues","depth":3},{"title":"Performance Optimization Tips","url":"#performance-optimization-tips","depth":2},{"title":"Reducing Spotlight's Resource Usage","url":"#reducing-spotlights-resource-usage","depth":3},{"title":"Limit Background Activity","url":"#limit-background-activity","depth":4},{"title":"Schedule Intensive Indexing","url":"#schedule-intensive-indexing","depth":4},{"title":"Optimize What Gets Indexed","url":"#optimize-what-gets-indexed","depth":4},{"title":"SSD vs HDD Performance Considerations","url":"#ssd-vs-hdd-performance-considerations","depth":3},{"title":"Preventing Future Spotlight Problems","url":"#preventing-future-spotlight-problems","depth":2},{"title":"Best Practices","url":"#best-practices","depth":3},{"title":"Regular Maintenance","url":"#regular-maintenance","depth":3},{"title":"When to Consider Spotlight Alternatives","url":"#when-to-consider-spotlight-alternatives","depth":2},{"title":"Alfred (Free / $34 Powerpack)","url":"#alfred-free--34-powerpack","depth":3},{"title":"Raycast (Free / $8/month Pro)","url":"#raycast-free--8month-pro","depth":3},{"title":"Troubleshooting FAQ","url":"#troubleshooting-faq","depth":2},{"title":"Q: How long should Spotlight indexing take?","url":"#q-how-long-should-spotlight-indexing-take","depth":3},{"title":"Q: Will rebuilding Spotlight delete my files?","url":"#q-will-rebuilding-spotlight-delete-my-files","depth":3},{"title":"Q: Why does mds_stores use high CPU after every restart?","url":"#q-why-does-mds_stores-use-high-cpu-after-every-restart","depth":3},{"title":"Q: Can I use my Mac while Spotlight indexes?","url":"#q-can-i-use-my-mac-while-spotlight-indexes","depth":3},{"title":"Q: What if Spotlight still doesn't work after trying everything?","url":"#q-what-if-spotlight-still-doesnt-work-after-trying-everything","depth":3},{"title":"Q: Is it safe to completely disable Spotlight?","url":"#q-is-it-safe-to-completely-disable-spotlight","depth":3},{"title":"Q: How do I know if Spotlight has finished indexing?","url":"#q-how-do-i-know-if-spotlight-has-finished-indexing","depth":3},{"title":"Q: Why does Spotlight keep re-indexing the same external drive?","url":"#q-why-does-spotlight-keep-re-indexing-the-same-external-drive","depth":3},{"title":"Q: Does Spotlight index cloud storage like iCloud Drive?","url":"#q-does-spotlight-index-cloud-storage-like-icloud-drive","depth":3},{"title":"Q: Can Spotlight issues cause other system problems?","url":"#q-can-spotlight-issues-cause-other-system-problems","depth":3},{"title":"Q: Are there any differences between Intel and Apple Silicon Macs?","url":"#q-are-there-any-differences-between-intel-and-apple-silicon-macs","depth":3},{"title":"Understanding Error Messages","url":"#understanding-error-messages","depth":2},{"title":"Common Spotlight Error Messages and Solutions","url":"#common-spotlight-error-messages-and-solutions","depth":3},{"title":"Interpreting Activity Monitor Data","url":"#interpreting-activity-monitor-data","depth":3},{"title":"macOS Version-Specific Issues","url":"#macos-version-specific-issues","depth":2},{"title":"macOS Tahoe 26","url":"#macos-tahoe-26","depth":3},{"title":"macOS Sequoia 15","url":"#macos-sequoia-15","depth":3},{"title":"macOS Sonoma 14","url":"#macos-sonoma-14","depth":3},{"title":"Expert Tips and Best Practices","url":"#expert-tips-and-best-practices","depth":2},{"title":"For Developers","url":"#for-developers","depth":3},{"title":"For Creative Professionals","url":"#for-creative-professionals","depth":3},{"title":"For System Administrators","url":"#for-system-administrators","depth":3},{"title":"Summary: Quick Reference Card","url":"#summary-quick-reference-card","depth":2},{"title":"Essential Terminal Commands","url":"#essential-terminal-commands","depth":3},{"title":"Troubleshooting Flowchart","url":"#troubleshooting-flowchart","depth":3},{"title":"Conclusion","url":"#conclusion","depth":2},{"title":"Related Resources","url":"#related-resources","depth":2},{"title":"Troubleshooting Guides","url":"#troubleshooting-guides","depth":3},{"title":"System Optimization","url":"#system-optimization","depth":3},{"title":"Recovery Options","url":"#recovery-options","depth":3}],"estimatedTime":25}