title: Graph REST API - Search inside DriveItem not working for non-mainstream file extensions
body: <p>I've been trying to search within a specific DriveItem folder but I've been having some troubles. First of all, despite the API stating that &quot;You can search within a folder hierarchy, a whole drive, or files shared with the current user.&quot;, I haven't found any documentation supporting this. I have found <a href="https://stackoverflow.com/a/56345091">this stackoverflow reply</a> that describes how to do it. Unfortunately, it doesn't to be working very well.</p>
  <p>Since I don't know how sensitive IDs are, I'll be redacting them in my examples.</p>
  <p><code>https://graph.microsoft.com/v1.0/me/drive/items/&lt;id_parent_folder&gt;/children?select=name</code></p>
  <p>This request returns all files inside the folder I want to search and it does list everything inside the folder. The response is something like:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;@odata.context&quot;: &quot;https://graph.microsoft.com/v1.0/$metadata#users('&lt;id_user&gt;')/drive/items('&lt;id_parent_folder&gt;')/children(name)&quot;,
      &quot;value&quot;: [
          {
              &quot;@odata.etag&quot;: &quot;\&quot;{redacted1},1\&quot;&quot;,
              &quot;name&quot;: &quot;automation_csv.csv&quot;
          },
          {
              &quot;@odata.etag&quot;: &quot;\&quot;{redacted2},1\&quot;&quot;,
              &quot;name&quot;: &quot;HOSPITAIS_PT.cpg&quot;
          },
          {
              &quot;@odata.etag&quot;: &quot;\&quot;{redacted3},1\&quot;&quot;,
              &quot;name&quot;: &quot;HOSPITAIS_PT.dbf&quot;
          },
          {
              &quot;@odata.etag&quot;: &quot;\&quot;{redacted4},1\&quot;&quot;,
              &quot;name&quot;: &quot;HOSPITAIS_PT.prj&quot;
          },
          {
              &quot;@odata.etag&quot;: &quot;\&quot;{redacted5},1\&quot;&quot;,
              &quot;name&quot;: &quot;HOSPITAIS_PT.qpj&quot;
          },
          {
              &quot;@odata.etag&quot;: &quot;\&quot;{redacted6},1\&quot;&quot;,
              &quot;name&quot;: &quot;HOSPITAIS_PT.shp&quot;
          },
          {
              &quot;@odata.etag&quot;: &quot;\&quot;{redacted7},1\&quot;&quot;,
              &quot;name&quot;: &quot;HOSPITAIS_PT.shx&quot;
          }
      ]
  }
  </code></pre>
  <p>However, when searching inside the folder I only get the CSV file....</p>
  <p><code>https://graph.microsoft.com/v1.0/me/drive/items/&lt;id_parent_folder&gt;/search(q='')?select=name</code></p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;@odata.context&quot;: &quot;https://graph.microsoft.com/v1.0/$metadata#Collection(driveItem)&quot;,
      &quot;value&quot;: [
          {
              &quot;@odata.type&quot;: &quot;#microsoft.graph.driveItem&quot;,
              &quot;name&quot;: &quot;&lt;name_parent_folder&gt;&quot;
          },
          {
              &quot;@odata.type&quot;: &quot;#microsoft.graph.driveItem&quot;,
              &quot;name&quot;: &quot;automation_csv.csv&quot;
          }
      ]
  }
  </code></pre>
  <p>Searching for any other file name produces no results.</p>
  <p>Is this a bug or a feature? Is there another endpoint that allows me to search all files inside a folder?</p>
  <p>EDIT: changed the &quot;beta&quot; endpoint to &quot;v1.0&quot;, though they produce the same results. Just don't want to create the assumption that it only happens in the beta endpoint.</p>