# Search results include menu (html list)

**URL:** <https://community.hubspot.com/t/search-results-include-menu-html-list/11688>\
**Category:** APIs & Integrations\
**Created:** [October 12, 2018, 10:08pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688 "2018-10-12T22:08:31Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![KenW](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kenw/32/21752_2.png) [@KenW](https://community.hubspot.com/u/KenW)\
**Post date:** [October 12, 2018, 10:08pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/1 "2018-10-12T22:08:31Z")

</div>

_Some_ of the results on the search page include a dropdown menu list items rather than content excerpt. The issue appears to be new. I contacted tech support but because I wrote the template they won’t help me.

Any idea what the issue could be?

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 15, 2018, 2:56pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/2 "2018-10-15T14:56:17Z")

</div>

Hi @KenW, I’m not aware of a common reason why this might happen, but would be happy to take a closer look if you send over an example of a search result page where there are results returned with the menu items showing up rather than an excerpt. Your HubID would be great to have as well! Thanks

---

<div class="post-metadata">

**Author:** ![KenW](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kenw/32/21752_2.png) [@KenW](https://community.hubspot.com/u/KenW)\
**Post date:** [October 15, 2018, 3:05pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/3 "2018-10-15T15:05:13Z")

</div>

Seems that now all of the results contain the “View by Product” menu item as the excerpt.  
[https://blog.toadworld.com/hs-search-results?term=oracle](https://blog.toadworld.com/hs-search-results?term=oracle)

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 15, 2018, 3:21pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/4 "2018-10-15T15:21:13Z")

</div>

Hi @KenW, thanks for the page link! I’ll take a look at this and get back to you when I have a solution

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 15, 2018, 9:22pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/5 "2018-10-15T21:22:32Z")

</div>

Hey @KenW, I’m still working on this and digging in with my team here. I’ll need to update you when I am able to find a solution. It’s 5:30 here in Cambridge so I’ll be digging into this tomorrow morning.

---

<div class="post-metadata">

**Author:** ![KenW](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kenw/32/21752_2.png) [@KenW](https://community.hubspot.com/u/KenW)\
**Post date:** [October 15, 2018, 9:38pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/6 "2018-10-15T21:38:32Z")

</div>

Sounds good, Connor. Thank you for your time.

For what it is worth, periodically, we record anonymized screens for user research. I found evidence of queries that worked as expected Oct 1 and the same queries now return the nav and menu lists (mentioned above).

All the best,  
Ken

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 15, 2018, 9:40pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/7 "2018-10-15T21:40:43Z")

</div>

@KenW, interesting, thanks for the extra info. I’ll be sure to consider this with any investigating I do. I don’t think we made updates to the way search works internally recently, but I could be wrong. I’ll be sure to check with our CMS developers.

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 17, 2018, 9:00pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/8 "2018-10-17T21:00:35Z")

</div>

Hi @KenW, my apologies on the delay here. Just reached out to my team about this and they pushed out a fix so that the search results won’t index your nav menu. If you check your oracle query now, you’ll see the right results are pulling through.

As another option if you’re looking to customize your code, you can clone your [results module](https://app.hubspot.com/beta-design-manager/4130326/modules/5808862322), and add a parameter to your search URL on line 49 by including the parameter `&length=SHORT` which will pull the description from the meta description of your blog posts instead, but this would require upkeep and making sure all your meta descriptions are up to snuff. This is documented here: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/content/search-for-content). Again, though, you should be good to go ![]()

---

<div class="post-metadata">

**Author:** ![KenW](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kenw/32/21752_2.png) [@KenW](https://community.hubspot.com/u/KenW)\
**Post date:** [October 17, 2018, 9:07pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/9 "2018-10-17T21:07:44Z")

</div>

Hi Connor,

I just checked the search results and they look good. I appreciate your attention to this issue and will communicate with my team.

All the best,  
Ken

---

<div class="post-metadata">

**Author:** ![Cadriel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cadriel/32/29892_2.png) [@Cadriel](https://community.hubspot.com/u/Cadriel)\
**Post date:** [October 17, 2018, 9:24pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/10 "2018-10-17T21:24:24Z")

</div>

[@Connor\_Barley](https://community.hubspot.com/u/connor_barley)

Out of interest - what was your fix? How does HubSpot index pages and produce the description for search results?

---

<div class="post-metadata">

**Author:** ![mcoley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mcoley/32/84874_2.png) [@mcoley](https://community.hubspot.com/u/mcoley)\
**Post date:** [October 17, 2018, 11:03pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/11 "2018-10-17T23:03:19Z")

</div>

@cadriel We use two types of extraction so we can build good snippets without missing results. The first kind analyzes the content on a page and extracts out the most relevant text (attempting to strip out things like menus, footers, etc.). The second kind does not filter any html out and is deemed less important to the search scoring algorithm. We use the first kind to build the result snippets to reduce noise from irrelevant HTML text. The text extraction is not perfect for all pages, and in the above case it was pulling in non-relevant data leading to bad snippets. I changed some of the filtering to be more strict and rebuilt the index for their portal, and all is well again.

---

<div class="post-metadata">

**Author:** ![Cadriel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cadriel/32/29892_2.png) [@Cadriel](https://community.hubspot.com/u/Cadriel)\
**Post date:** [October 18, 2018, 6:42pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/12 "2018-10-18T18:42:42Z")

</div>

[@Matthew\_Coley](https://community.hubspot.com/u/matthew_coley)

Sweet, thanks for the explanation..

Secondly, I tried hunting for documentation surrounding your suggestion of adding the `&length` property to the API call - but didn’t come up with much. Is this documented somewhere? And if not - could it be? Specifically the part about by using this parameter, the description would come from the pages meta description - I feel like this might have helped us out a bit.

Cheers!

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 18, 2018, 6:44pm UTC](https://community.hubspot.com/t/search-results-include-menu-html-list/11688/13 "2018-10-18T18:44:40Z")

</div>

hi @cadriel, yup it’s here: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/content/search-for-content). Command + F for “length”
