title: solr stats error: Can't calculate stats on a PointField without docValues
body: <p>I am trying to get the min/max price of a search with solr 7.x in order to populate a min/max price filter following this tuturial:</p>
  
  <p><a href="https://qavi.tech/get-minimum-and-maximum-price-in-solr/" rel="nofollow noreferrer">https://qavi.tech/get-minimum-and-maximum-price-in-solr/</a></p>
  
  <p><a href="https://lucene.apache.org/solr/guide/6_6/the-stats-component.html" rel="nofollow noreferrer">https://lucene.apache.org/solr/guide/6_6/the-stats-component.html</a></p>
  
  <p>field:</p>
  
  <pre><code>&lt;field name="price" type="tint" indexed="true" stored="true" required="false" /&gt; 
  </code></pre>
  
  <p>Solr returns the following error:</p>
  
  <blockquote>
    <p>"msg": "Can't calculate stats on a PointField without docValues",
        "code": 400</p>
  </blockquote>
  
  <p>What could be the reason for this and do I have to enable this in solr_conf?</p>
  
  <pre><code>&lt;searchComponent name="stats"     class="solr.StatsComponent" /&gt;
  </code></pre>