By default, Voog's built-in search engine indexes all sites' public content regularly. To improve the accuracy of search results, you can specify what parts of your pages can be indexed with special attributes.
data-search-indexing-allowed="false"
attribute. data-search-indexing-allowed="true"
attribute.<body>
<div>
<div data-search-indexing-allowed="false">
<div data-search-indexing-allowed="true">
Is included to index.
<div>Is included to index.</div>
<div data-search-indexing-allowed="false">Is not included to index.</div>
</div>
<span>Is not included to index.</span>
Is not included to index.
</div>
<span>Is not included to index.</span>
</div>
</body>
If you don't use this attribute anywhere in your layout, indexing is performed normally — all text content is taken into account. If this attribute is used anywhere on the page, the search engine switches to another "mode" and only looks for HTML elements (with their children) that have this attribute set as true
.
Note: this applies only to the built-in search feature. Learn how to improve your site's visibility for Google and other global search engines.