title: How to make search using "contains" with DynamoDB
body: <p>I'm trying to make search function on my React app.</p>
  
  <p>I have this DynamoDB table:</p>
  
  <pre><code>---------------------
  movie_id | movie_name
  ---------------------
  1        | name a
  ---------------------
  2        | name b
  ---------------------
  </code></pre>
  
  <p>I want to make a search function to search "b" on the React app's search input and get "name b" from the DB as the result.</p>
  
  <p>I tried to <code>query</code> with <code>CONTAINS</code> but didn't work and does not seem to be a proper way to do it. </p>
  
  <pre><code>const SEARCH_KEYWORD = "b";
  
  let params = {
     TableName : 'TABLE_NAME',
     KeyConditionExpression: "contains(#movie_name, :movie_name)",
     ExpressionAttributeNames:{
       "#movie_name": 'movie_name'
     },
     ExpressionAttributeValues:{
         ":movie_name": SEARCH_KEYWORD
     }
  };
  documentClient.query(params, function(err, data) {
    console.log(data);
  });
  </code></pre>
  
  <p>What is the best way to create search function on my React app with DynamoDB? </p>
  
  <p>Does it even make sense to run a query by the search keyword to check if the data contains keyword value?</p>