Answers.Body: <p>So really your question is not how to disable/enable all entries in a section, it's how to rebuild your search index. Look here:</p>
  <p><a href="https://craftcms.com/docs/4.x/searching.html#rebuilding-your-search-indexes" rel="nofollow noreferrer">https://craftcms.com/docs/4.x/searching.html#rebuilding-your-search-indexes</a></p>
  <pre class="lang-bash prettyprint-override"><code>php craft resave/entries --section parts --update-search-index
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-16T17:08:21.173Z
Answers.Text: That worked brilliantly. Thank you
Answers.UserDisplayName: Noah Yamen
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-16T08:00:55.650Z
Answers.LastActivityDate: 2023-07-16T08:00:55.650Z
Answers.UserDisplayName: James Smith
Body: <p>I have a channel named Parts. And there are 160k+ entries in it. I originally imported them into the channel using the &quot;Feed Me&quot; plugin. But none of the entries will show up in search results unless I re-enable the entry.</p>
  <p>Each entry says it's enabled, but the entry won't show up in search results unless I first disable it, save it, then re-enable and save it.</p>
  <p>I've tried re-saving the section in the control panel to trigger a mass resave. But that didn't do the trick. I see there is a resave command option for the craft console, but I don't know how to use it.</p>
  <p>Any tips?</p>
  
Tags: <search>
Title: How to disable/enable all entries in a channel?
ThreadText: # How to disable/enable all entries in a channel?
  
  (Asked by: username_0 on 2023-07-15)
  
  I have a channel named Parts. And there are 160k+ entries in it. I originally imported them into the channel using the "Feed Me" plugin. But none of the entries will show up in search results unless I re-enable the entry.
  
  Each entry says it's enabled, but the entry won't show up in search results unless I first disable it, save it, then re-enable and save it.
  
  I've tried re-saving the section in the control panel to trigger a mass resave. But that didn't do the trick. I see there is a resave command option for the craft console, but I don't know how to use it.
  
  Any tips?
  
  **Tags:** search
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-07-16. Score: 1 | Accepted answer
  
  So really your question is not how to disable/enable all entries in a section, it's how to rebuild your search index. Look here:
  
  <https://craftcms.com/docs/4.x/searching.html#rebuilding-your-search-indexes>
  
  ```bash
  php craft resave/entries --section parts --update-search-index
  
  ```
  
  > **Comments:**
  > **username_0**: That worked brilliantly. Thank you  
  
  ---
  
  