title: Storing and searching dynamic key value pairs in Solr document
body: <p>I need to store and index key value pairs attached with a particular Solr document. For eg, there might be a variable number of tags(labels)  attached to a solr document with each tag name having an integer along with it as a value for it.</p>
  
  <pre><code>   &lt;doc&gt;
       &lt;id&gt;1001&lt;/id&gt;
       #dymanic tags attached
       php=&gt;10
       web=&gt;2
       programming=&gt;12
       mysql=&gt;10
  
      &lt;/doc&gt;  
  </code></pre>
  
  <p>So when I search for "php" this document should showup in the search results and I should be able to read its value for that particular document (in case of example its value is 10). How do I create a schema for this and how do i store this. Also how do I search for it using the REST api?</p>