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


(Raja Akhtar) #1

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1b2ece9a-ba93-42f9-9ed2-af946151ebda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Alexander Reelsen) #2

Hey,

the word compound filter might help in your case. See
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-compound-word-tokenfilter.html#analysis-compound-word-tokenfilter

--Alex

On Fri, Apr 25, 2014 at 5:04 PM, Raja Akhtar 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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/1b2ece9a-ba93-42f9-9ed2-af946151ebda%40googlegroups.comhttps://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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-efiTgiNQ09UTmw77wdXM4ycJh6QFzFy7SmExkqOh3Pw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3