# Multiple words in search api

**URL:** <https://community.hubspot.com/t/multiple-words-in-search-api/98474>\
**Category:** APIs & Integrations\
**Tags:** cms-content\
**Created:** [January 23, 2024, 7:13pm UTC](https://community.hubspot.com/t/multiple-words-in-search-api/98474 "2024-01-23T19:13:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariana\_pic](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mariana_pic/32/66297_2.png) [@mariana\_pic](https://community.hubspot.com/u/mariana_pic)\
**Post date:** [January 23, 2024, 7:13pm UTC](https://community.hubspot.com/t/multiple-words-in-search-api/98474/1 "2024-01-23T19:13:47Z")

</div>

I am using the search API to create a React search module, it is working fine but what happens is when I search by multiple words it brings all results from any of those terms independently.  
Example if I search for “Red Dog” it will bring any page, post etc that has Red OR Dog, and I would want it to bring results that have both words together “Red Dog”.  
Is there a way to do this?? I checked in the documentation and in the slack channel and couldn’t find a solution.  
Thank you  
[https://api.hubapi.com/contentsearch/v2/search](https://api.hubapi.com/contentsearch/v2/search)?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 24, 2024, 5:42pm UTC](https://community.hubspot.com/t/multiple-words-in-search-api/98474/2 "2024-01-24T17:42:34Z")

</div>

Hi, [@mariana\_pic](https://community.hubspot.com/t5/user/viewprofilepage/user-id/841). Can you share which search operator you are using? Is it `EQ` or `CONTAINS_TOKEN`, for example?

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![mariana\_pic](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mariana_pic/32/66297_2.png) [@mariana\_pic](https://community.hubspot.com/u/mariana_pic)\
**Post date:** [February 12, 2024, 2:35pm UTC](https://community.hubspot.com/t/multiple-words-in-search-api/98474/3 "2024-02-12T14:35:44Z")

</div>

Hello [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)  
Just saw this message,  
I’m not using any operator, I’m using the search API.

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Flegacy%2Fsite-search-v2%2Fsearch-Content)**

I’m not seeing any documentation related to an operation with those values.  
Just using “?term=Red Dog”  
How would you solve it?
