title: How do I tell Select2 to search from data-attr in addition to the option text (search from multiple attributes in select2 tag)
body: <p>I have a select2 in my rails app for customer names, now the search feature works well with customer names as option's text are set to customer name, now I want the select2 to perform the search for customer's contact_no too.
  And I am setting customer's contact_no in data-attr in each option tag.
  So, how the searching can be performed from the data-attr in addition with the option text.
  Thanks in advance.</p>
  
  <p><strong>Edit</strong>
  Here is the HTML</p>
  
  <pre><code>&lt;select&gt;
      &lt;option value="1" data-contact-no="9898989898"&gt;Zamir&lt;/option&gt;
      &lt;option value="2" data-contact-no="6767676767"&gt;Manihar&lt;/option&gt;
      &lt;option value="2" data-contact-no="666666"&gt;Zimmie&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>and JavaScript</p>
  
  <pre><code>$("select").select2();
  </code></pre>