# How does the knowledge base search algorithm weigh keywords in HubSpot?

**URL:** <https://community.hubspot.com/t/how-does-the-knowledge-base-search-algorithm-weigh-keywords-in-hubspot/69768>\
**Category:** Knowledge Base Tool\
**Tags:** content\
**Created:** [November 22, 2022, 4:21pm UTC](https://community.hubspot.com/t/how-does-the-knowledge-base-search-algorithm-weigh-keywords-in-hubspot/69768 "2022-11-22T16:21:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HOstrowski](https://avatars.discourse-cdn.com/v4/letter/h/ea666f/32.png) [@HOstrowski](https://community.hubspot.com/u/HOstrowski)\
**Post date:** [November 22, 2022, 4:21pm UTC](https://community.hubspot.com/t/how-does-the-knowledge-base-search-algorithm-weigh-keywords-in-hubspot/69768/1 "2022-11-22T16:21:27Z")

</div>

What is the algorithm for searching on an article in the Knowledge base or returning articles based on keywords in a chatbot? What has the most weight: on the article title, subtitle, body, category or subcategory, or tags?

---

<div class="post-metadata">

**Author:** ![TitiCuisset](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TitiCuisset](https://community.hubspot.com/u/TitiCuisset)\
**Post date:** [November 23, 2022, 8:24am UTC](https://community.hubspot.com/t/how-does-the-knowledge-base-search-algorithm-weigh-keywords-in-hubspot/69768/2 "2022-11-23T08:24:16Z")

</div>

Hi @HOstrowski

The knowledge base search algorithm prioritizes keywords in the following order:

1. **Title**
2. **Subheading** (the article description)
3. **Tags**
4. **Article content** (the body of the article)

It’s also important to note that articles with more views may rank higher in the returned search results.

[Moderator Note: this post has been optimized for clarity. Thank you for your contributions to the HubSpot Community!]

Hope that helps.  
Have a lovely day,  
Tiphaine.

---

<div class="post-metadata">

**Author:** ![danmoyle](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danmoyle/32/91166_2.png) [@danmoyle](https://community.hubspot.com/u/danmoyle)\
**Post date:** [November 23, 2022, 8:32pm UTC](https://community.hubspot.com/t/how-does-the-knowledge-base-search-algorithm-weigh-keywords-in-hubspot/69768/3 "2022-11-23T20:32:06Z")

</div>

This is a great list, [@TitiCuisset](https://community.hubspot.com/t5/user/viewprofilepage/user-id/89150) - thank you!

---

<div class="post-metadata">

**Author:** ![Emader](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@Emader](https://community.hubspot.com/u/Emader)\
**Post date:** [March 31, 2025, 3:09pm UTC](https://community.hubspot.com/t/how-does-the-knowledge-base-search-algorithm-weigh-keywords-in-hubspot/69768/4 "2025-03-31T15:09:16Z")

</div>

Is there a way to adjust this? Tags/keywords would be more efficient in my case - or should I use an AI chatbot maybe?
