title: Compare Year part of Date field in AWS CloudSearch Domain
body: <p>Being new to AWS CloudSearch, got stuck on the following issue -
  I need to get all the records from CloudSearch domain, which have same year (date field) passed with search query.</p>
  <p>For example -</p>
  <p>Like we do in the SQL SERVER -</p>
  <pre><code>Year(01/03/2020) -&gt; Output - 2020
  </code></pre>