Does Apache Solr assign a weight to HTML tags? Would Solr consider HTML tags when it creates its indexes? Would &lt;h1&gt;, for example, be more important than &lt;h2&gt;, &lt;p&gt;?
If you are using the Apachesolr module, then yes. The module has some sensible weighting defaults for the tags, but they can be further customized at admin/settings/apachesolr/query-fields.