title: How to disable searching in specific DataTable columns?
body: <p>I'm using successfully this code </p>
  
  <pre><code>function refreshDataTable() {
          // The table is made sortable
          $('#order_proposal_table').DataTable({
              'destroy'           : true,     // see http://datatables.net/manual/tech-notes/3#destroy - 2nd example
              'paging'            : false,
              'scrollCollapse'    : true,
              'scrollY'           : '65vh',
              'fixedHeader'       : true,
              'dom'               : 'rt',
          }); 
      }
  </code></pre>
  
  <p>Then I'm trying to enable searching in 2 of the 9 columns.</p>
  
  <p>So I changed</p>
  
  <pre><code>'dom'               : 'rt',
  </code></pre>
  
  <p>into</p>
  
  <pre><code>'dom'               : 'frt',
  </code></pre>
  
  <p>To show the find input box. This works, but it searches trough every columns, but I need to search only into 2 columns.</p>
  
  <p>So I'm trying to follow this <a href="https://datatables.net/reference/option/columns.searchable" rel="nofollow">official guide to disable filtering</a> selectively, and add <code>columns</code> definition</p>
  
  <p>Resulting code:</p>
  
  <pre><code>function refreshDataTable() {
          // The table is made sortable
          $('#order_proposal_table').DataTable({
              'destroy'           : true,     // see http://datatables.net/manual/tech-notes/3#destroy - 2nd example
              'paging'            : false,
              'scrollCollapse'    : true,
              'scrollY'           : '65vh',
              'fixedHeader'       : true,
              'dom'               : 'frt',
              'columns'           : [         // see https://datatables.net/reference/option/columns.searchable
                  { 'searchable': false },
                  { 'searchable': false },
                  null,   // product code 
                  null,   // description 
                  { 'searchable': false }
              ]
          }); 
      }
  </code></pre>
  
  <p>The problem is that I've a javscript error from the datatable javascript </p>
  
  <blockquote>
    <p>TypeError: col is undefined</p>
  </blockquote>
  
  <p>Removing <code>columns</code> the code works. </p>
  
  <p>What am I doing wrong?</p>