# Search term with space on Couchdb River index

**URL:** <https://discuss.elastic.co/t/search-term-with-space-on-couchdb-river-index/3632>\
**Category:** Elasticsearch\
**Created:** [December 6, 2010, 1:21am UTC](https://discuss.elastic.co/t/search-term-with-space-on-couchdb-river-index/3632 "2010-12-06T01:21:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Selva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/selva/32/3300_2.png) [@Selva](https://discuss.elastic.co/u/Selva)\
**Post date:** [December 6, 2010, 1:21am UTC](https://discuss.elastic.co/t/search-term-with-space-on-couchdb-river-index/3632/1 "2010-12-06T01:21:07Z")

</div>

Im not getting any results for the search terms which contain spaces.  
In my case, the index is built with the couchdb river. The search  
works perfectly fine for the terms without spaces. But causing trouble  
for terms with spaces.

Im a missing anything here? Should I use any spceical tokenizer/  
analyser for searching terms with spaces? If so how to do that for the  
couchdb river index?

Thanks  
Selvakumar

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 6, 2010, 6:02pm UTC](https://discuss.elastic.co/t/search-term-with-space-on-couchdb-river-index/3632/2 "2010-12-06T18:02:16Z")

</div>

Can you give an example? By default, the standard analyzer will split on spaces, so, indexing something like: "test me" will be broken to "test" and "me". Then, when searching, if you try and do a term query for "test me", it will not be found since its expect to be found as a single term. On the other hand, if you use field / query\_string queries, the same analysis process happens on the searched text as well, so you will find results.  
On Monday, December 6, 2010 at 3:21 AM, Selva wrote:

> Im not getting any results for the search terms which contain spaces.  
> In my case, the index is built with the couchdb river. The search  
> works perfectly fine for the terms without spaces. But causing trouble  
> for terms with spaces.
> 
> Im a missing anything here? Should I use any spceical tokenizer/  
> analyser for searching terms with spaces? If so how to do that for the  
> couchdb river index?
> 
> Thanks  
> Selvakumar

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:15am UTC](https://discuss.elastic.co/t/search-term-with-space-on-couchdb-river-index/3632/3 "2017-07-06T04:15:38Z")

</div>


