<p>I don’t think it’s a bug, that’s what the docs describe, although I would tend to make the same assumption that you’ve made about how it <em>should</em> work.</p>
<p>Either way you can search for a contains, or an exact match at the same time:</p>
<pre><code>.search(search_query &quot;OR \&quot;&quot; ~ search_query ~ &quot;\&quot;&quot;)
</code></pre>

CC BY-SA 4.0
2020-07-02T15:27:38.893Z
2020-07-02T15:35:10.163Z
2020-07-02T15:35:10.163Z
mitrol
<p>When a client site is searched by the whole title, the search results return zero.
If I search by a few words in the entry title then the entry is returned in the search results.</p>
<p>If i search with the whole title in quotes, I get the entry in the search results.</p>
<p>I am expecting the entry to be returned when searching on whole title.</p>
<p>So is this a bug to file or mismatched expectation?</p>
<p>Search query :
results?q=Help+for+seafarers+when+they+need+it+most</p>

CC BY-SA 4.0
2020-07-02T13:17:21.590Z
Can you share the full string you are searching for and is this happening on the front-end or CP or both?
Oli
<search>
Searching on whole title returns no results
# Searching on whole title returns no results

(Asked by: username_0 on 2020-07-02)

When a client site is searched by the whole title, the search results return zero.
If I search by a few words in the entry title then the entry is returned in the search results.

If i search with the whole title in quotes, I get the entry in the search results.

I am expecting the entry to be returned when searching on whole title.

So is this a bug to file or mismatched expectation?

Search query :
results?q=Help+for+seafarers+when+they+need+it+most

**Tags:** search
> **Comments:**
> **username_1**: Can you share the full string you are searching for and is this happening on the front-end or CP or both?  

---

## 1 answers

### Answer by username_2 on 2020-07-02. Score: 1

I don’t think it’s a bug, that’s what the docs describe, although I would tend to make the same assumption that you’ve made about how it should work.
Either way you can search for a contains, or an exact match at the same time:
.search(search_query "OR \"" ~ search_query ~ "\"")


---

