APIs & Integrations

CHugo
投稿者

Search article results for one Blog

解決

Hello, I have some issues with the search bar in one of our Blogs.

We want to search only the articles in one of our BLOGS.

This is my code, it worked fine, but it seems marketing have add "NO FOLLOW" code, for the articles to not be indexed by google.

 

https://ai.reportlinker.com/enterprise-knowledge-base

Now its not working anymore.

 

Can somebody help me how to correct it please?

 

This is my code:


<div class="hs-search-field">
<div class="hs-search-field__bar">
<form action="/{{ site_settings.content_search_results_page_path }}">
<input type="text" class="hs-search-field__input" name="term" autocomplete="on" aria-label="{{ "Search" }}" placeholder="{{ "Search Articles" }}">
<input type="hidden" name="pathPrefix" value="enterprise-knowledge-base">
<input type="hidden" name="type" value="blog_post">
</form>
</div>
<ul class="hs-search-field__suggestions"></ul>
</div>

0 いいね!
1件の承認済みベストアンサー
LeeBartelme
解決策
HubSpot Employee
HubSpot Employee

Search article results for one Blog

解決

The blog articles themselves appear to have a robots noindex tag on them. Noindex tells crawlers not in index the pages and therefore hide them from search. I believe HubSpot's own crawler respects these directives like any other crawler. You would need to remove that tag for them to be crawled, indexed and displayed in search results.

 

This developer post explains what is happening a bit. I see the noindex meta robots tag on this page for example: https://ai.reportlinker.com/enterprise-knowledge-base/filters/smart-insights 

元の投稿で解決策を見る

1件の返信
LeeBartelme
解決策
HubSpot Employee
HubSpot Employee

Search article results for one Blog

解決

The blog articles themselves appear to have a robots noindex tag on them. Noindex tells crawlers not in index the pages and therefore hide them from search. I believe HubSpot's own crawler respects these directives like any other crawler. You would need to remove that tag for them to be crawled, indexed and displayed in search results.

 

This developer post explains what is happening a bit. I see the noindex meta robots tag on this page for example: https://ai.reportlinker.com/enterprise-knowledge-base/filters/smart-insights