# Is concatenated search possible, where whitespace may or may not exist?

**URL:** <https://discuss.elastic.co/t/is-concatenated-search-possible-where-whitespace-may-or-may-not-exist/17209>\
**Category:** Elasticsearch\
**Created:** [April 25, 2014, 9:04pm UTC](https://discuss.elastic.co/t/is-concatenated-search-possible-where-whitespace-may-or-may-not-exist/17209 "2014-04-25T21:04:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raja\_Akhtar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raja_akhtar/32/772_2.png) [@Raja\_Akhtar](https://discuss.elastic.co/u/Raja_Akhtar)\
**Post date:** [April 25, 2014, 9:04pm UTC](https://discuss.elastic.co/t/is-concatenated-search-possible-where-whitespace-may-or-may-not-exist/17209/1 "2014-04-25T21:04:24Z")

</div>

Hi there

I'm facing a problem when searching for something where whitespace may or  
may not exists.

Currently we have no issue performing the following:

"cross trainer" returning results for "cross trainer" and "crosstrainer"

However, we're looking to get results from searching "crosstrainer" to give  
us "cross trainer"

Another example

Searching "train station" gives us both "train station" and  
"trainstation" but it wont work vice versa

so searching "trainstation" will not return "train station"

We're seen others have the same issue but would like to know if it's  
possible to get a fix for this.

It't the last outstanding issue we have at the moment.

Thanks for all the help

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1b2ece9a-ba93-42f9-9ed2-af946151ebda%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1b2ece9a-ba93-42f9-9ed2-af946151ebda%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 26, 2014, 12:57am UTC](https://discuss.elastic.co/t/is-concatenated-search-possible-where-whitespace-may-or-may-not-exist/17209/2 "2014-04-26T00:57:00Z")

</div>

Hey,

the word compound filter might help in your case. See

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--Alex

On Fri, Apr 25, 2014 at 5:04 PM, Raja Akhtar [raja.akhtar@gmail.com](mailto:raja.akhtar@gmail.com) wrote:

> Hi there
> 
> I'm facing a problem when searching for something where whitespace may or  
> may not exists.
> 
> Currently we have no issue performing the following:
> 
> "cross trainer" returning results for "cross trainer" and "crosstrainer"
> 
> However, we're looking to get results from searching "crosstrainer" to  
> give us "cross trainer"
> 
> Another example
> 
> Searching "train station" gives us both "train station" and  
> "trainstation" but it wont work vice versa
> 
> so searching "trainstation" will not return "train station"
> 
> We're seen others have the same issue but would like to know if it's  
> possible to get a fix for this.
> 
> It't the last outstanding issue we have at the moment.
> 
> Thanks for all the help
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/1b2ece9a-ba93-42f9-9ed2-af946151ebda%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1b2ece9a-ba93-42f9-9ed2-af946151ebda%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/1b2ece9a-ba93-42f9-9ed2-af946151ebda%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1b2ece9a-ba93-42f9-9ed2-af946151ebda%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-efiTgiNQ09UTmw77wdXM4ycJh6QFzFy7SmExkqOh3Pw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-efiTgiNQ09UTmw77wdXM4ycJh6QFzFy7SmExkqOh3Pw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:33am UTC](https://discuss.elastic.co/t/is-concatenated-search-possible-where-whitespace-may-or-may-not-exist/17209/3 "2017-07-06T01:33:19Z")

</div>


