Answers.Body: <p>From the <a href="http://buildwithcraft.com/docs/searching#supported-syntaxes" rel="nofollow">docs</a>:</p>
  
  <pre><code>{% set results = craft.entries.search('*' ~ query ~ '*').order('score') %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-07T14:53:45.040Z
Answers.LastActivityDate: 2014-10-07T14:53:45.040Z
Answers.UserDisplayName: Brad Bell
Body: <p>Edited for clarity:</p>
  
  <p>I do have a search form in the frontend where customers can enter keywords.
  The way it searches now only returns exact matches. I'd like to tell Craft to look for works containing the keyword the look for.</p>
  
  <p>I know I have to set the 'q' param to do this but I have no idea what I should do.</p>
  
  <p>Search for results page:</p>
  
  <pre><code>{% set query = craft.request.getParam('q') %}
  {% set entries = craft.entries.search(query).section('oeuvres').order('score') %}
  </code></pre>
  
Tags: <search>
Title: Craft Search looking for keywords contained in the query
ThreadText: # Craft Search looking for keywords contained in the query
  
  (Asked by: username_0 on 2014-10-06)
  
  Edited for clarity:
  
  I do have a search form in the frontend where customers can enter keywords.
  The way it searches now only returns exact matches. I'd like to tell Craft to look for works containing the keyword the look for.
  
  I know I have to set the 'q' param to do this but I have no idea what I should do.
  
  Search for results page:
  
  ```
  {% set query = craft.request.getParam('q') %}
  {% set entries = craft.entries.search(query).section('oeuvres').order('score') %}
  
  ```
  
  **Tags:** search
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-10-07. Score: 1 | Accepted answer
  
  From the [docs](http://buildwithcraft.com/docs/searching#supported-syntaxes):
  
  ```
  {% set results = craft.entries.search('*' ~ query ~ '*').order('score') %}
  
  ```
  
  
  ---
  
  