Answers.Body: <p>Do you have a queue runner that executes queue jobs?  The search index command only creates queue jobs to perform the indexing, they still need to be executed. Check Utilities -&gt; Queue Manager to see if the queue jobs are actually being executed. If not, use <code>php craft queue/run</code> to execute all pending jobs or <code>php craft queue/listen</code> to create a queue runner that executes new jobs as they come in.</p>
  <p>See the article <a href="https://nystudio107.com/blog/robust-queue-job-handling-in-craft-cms" rel="nofollow noreferrer"><em>Robust queue job handling</em></a> for details.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-03T08:18:06.947Z
Answers.LastActivityDate: 2022-08-03T08:18:06.947Z
Answers.UserDisplayName: MoritzLost
Body: <p>I have a site with around 300 entries and at least 50 custom fields. But I'm only getting results if the keyword(s) are part of the title field, I have the &quot;Use this field's value as keywords&quot; option checked on all my fields. Also, I tried the update search index command but it didn't work. I hope someone has a solution to this. below is my search query code.</p>
  <p>Thank you.</p>
  <pre><code>{% set searchQuery = craft.app.request.getParam('q') %}
  {% set entries = craft.entries()
     .search(searchQuery)
     .section('and, not referrals, not newsletterSubscribe')
     .orderBy('score').limit(15) %}
  {% if entries | length %}
      &lt;h3&gt;Found {{ entries | length }} search results for 
      &lt;span&gt;{{searchQuery}}&lt;/span&gt;&lt;/h3&gt;
      &lt;div class=&quot;search-result__list &quot;&gt;
  {% for entry in entries %}
      &lt;div class=&quot;search-result__item&quot;&gt;
      &lt;h4&gt;&lt;a href=&quot;{{ entry.url }}&quot;&gt;{{ entry.title }}&lt;/a&gt;&lt;/h4&gt;
      &lt;/div&gt;
  {% endfor %}
  {% else %}
      &lt;p&gt;Your search for “{{ searchQuery }}” didn’t return any results.&lt;/p&gt;
  {% endif %}
  </code></pre>
  
Tags: <craft3><search><index>
Title: Search query ignoring custom fields in search in search index
ThreadText: # Search query ignoring custom fields in search in search index
  
  (Asked by: username_0 on 2022-08-03)
  
  I have a site with around 300 entries and at least 50 custom fields. But I'm only getting results if the keyword(s) are part of the title field, I have the "Use this field's value as keywords" option checked on all my fields. Also, I tried the update search index command but it didn't work. I hope someone has a solution to this. below is my search query code.
  
  Thank you.
  
  ```
  {% set searchQuery = craft.app.request.getParam('q') %}
  {% set entries = craft.entries()
     .search(searchQuery)
     .section('and, not referrals, not newsletterSubscribe')
     .orderBy('score').limit(15) %}
  {% if entries | length %}
      <h3>Found {{ entries | length }} search results for 
      <span>{{searchQuery}}</span></h3>
      <div class="search-result__list ">
  {% for entry in entries %}
      <div class="search-result__item">
      <h4><a href="{{ entry.url }}">{{ entry.title }}</a></h4>
      </div>
  {% endfor %}
  {% else %}
      <p>Your search for “{{ searchQuery }}” didn’t return any results.</p>
  {% endif %}
  
  ```
  
  **Tags:** craft3, search, index
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-08-03. Score: 1
  
  Do you have a queue runner that executes queue jobs? The search index command only creates queue jobs to perform the indexing, they still need to be executed. Check Utilities -> Queue Manager to see if the queue jobs are actually being executed. If not, use `php craft queue/run` to execute all pending jobs or `php craft queue/listen` to create a queue runner that executes new jobs as they come in.
  
  See the article [*Robust queue job handling*](https://nystudio107.com/blog/robust-queue-job-handling-in-craft-cms) for details.
  
  
  ---
  
  