title: SalesForce Open Commerce API product_search
body: <p>I am new to SalesForce OCAPI. I am working with the product_search api. I am passing the following query</p>
  <pre><code>  &quot;query&quot;: {
      &quot;text_query&quot;: {
        &quot;fields&quot;: [
          &quot;id&quot;, &quot;name&quot;
        ],
        &quot;search_phrase&quot;: &quot;some_search_phrase&quot;
      }   },   &quot;select&quot;: &quot;(**)&quot; }
  </code></pre>
  <p>It works fine and I get the response. However, I want to include the &quot;creation_date&quot; field in the query but it doesn't work.
  link to documentation: <a href="https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%2Fcom.demandware.dochelp%2FOCAPI%2Fcurrent%2Fdata%2FResources%2FCatalogSearch.html" rel="nofollow noreferrer">https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%2Fcom.demandware.dochelp%2FOCAPI%2Fcurrent%2Fdata%2FResources%2FCatalogSearch.html</a></p>
  <p>Here is what I am attempting.</p>
  <pre><code>  &quot;query&quot;: {
      &quot;text_query&quot;: {
        &quot;fields&quot;: [
          &quot;id&quot;, &quot;name&quot;, &quot;creation_date - 2021-11-23T07:38:30.000Z&quot;
        ],
        &quot;search_phrase&quot;: &quot;some_search_phrase&quot;
      }
    },
    &quot;select&quot;: &quot;(**)&quot;
  }
  </code></pre>
  <p>and I get the following response.</p>
  <pre><code>{&quot;_v&quot;:&quot;21.10&quot;,&quot;fault&quot;:{&quot;arguments&quot;:{&quot;field&quot;:&quot;creation_date - 2021-11-23T07:38:30.000Z&quot;},&quot;type&quot;:&quot;UnqueryableFieldException&quot;,&quot;message&quot;:&quot;The field 'creation_date - 2021-11-23T07:38:30.000Z' can't be queried.&quot;}}
  </code></pre>
  <p>There are a few other attributes in the field according to the documentation.</p>
  <pre><code>id - String
  name - String
  online - SiteSpecific Boolean
  searchable - SiteSpecific Boolean
  valid_from - SiteSpefic DateTime
  valid_to - SiteSpecfic DateTime
  type - ProductType
  creation_date - DateTime
  </code></pre>
  <p>What I am trying to do is to fetch the products after a specific &quot;creation_date&quot; and I don't know whether to use &quot;valid_from&quot; and &quot;valid_to&quot; or the &quot;creation_date&quot;</p>