Answers.Body: <p>Starting with Craft 3.1 the solution is easy. In the field definition there is a new checkbox: "Use this field's value as search keywords". Uncheck and you're done!</p>
  
  <p><a href="https://i.sstatic.net/1AArL.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/1AArL.png" alt="enter image description here"></a></p>
  
  <p><em>Please note that there was a bug until Craft 3.1.9.1 which prevented this from working. Thanks to Romain poirier and Brandon Kelly (<a href="https://github.com/craftcms/cms/issues/3837" rel="nofollow noreferrer">https://github.com/craftcms/cms/issues/3837</a>).</em></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-13T21:50:13.540Z
Answers.LastActivityDate: 2019-02-13T21:50:13.540Z
Answers.UserDisplayName: Matthias Redl-Mann
Body: <p>I have an event section in my website with a couple of fields on the entries and one of them is a "related events" field where I can select a other event entries to be shown at the end of the page.</p>
  
  <p>I also use the .search() function to search within events and it happens that events are listed in the results of searches for a certain keyword, where the only appearance is within the related events, which is unwanted behavior.</p>
  
  <p>What I need is to exclude this one field where I can select the related events from the search index.</p>
  
  <p>How can this be solved?</p>
  
Tags: <search><field><exclude>
Title: How to exclude certain fields from .search()
ThreadText: # How to exclude certain fields from .search()
  
  (Asked by: username_0 on 2019-02-13)
  
  I have an event section in my website with a couple of fields on the entries and one of them is a "related events" field where I can select a other event entries to be shown at the end of the page.
  
  I also use the .search() function to search within events and it happens that events are listed in the results of searches for a certain keyword, where the only appearance is within the related events, which is unwanted behavior.
  
  What I need is to exclude this one field where I can select the related events from the search index.
  
  How can this be solved?
  
  **Tags:** search, field, exclude
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-02-13. Score: 3 | Accepted answer
  
  Starting with Craft 3.1 the solution is easy. In the field definition there is a new checkbox: "Use this field's value as search keywords". Uncheck and you're done!
  
  [![enter image description here](https://i.sstatic.net/1AArL.png)](https://i.sstatic.net/1AArL.png)
  
  *Please note that there was a bug until Craft 3.1.9.1 which prevented this from working. Thanks to Romain poirier and Brandon Kelly (<https://github.com/craftcms/cms/issues/3837>).*
  
  
  ---
  
  