Try our conversational search powered by Generative AI!

Compound word splitting examples?


I saw this on the latest version of Find but I can't find any information on how to use

Will there be any examples of this?

Dec 02, 2014 13:47

Hi Henrik,

No there will be no examples of this. The general idea is that it just works ;)

Example code: 

var client = Client.CreateFromConfig();
            var testObject = new TestObject() {ord = "cykelstyre"};



            var result = client.Search<TestObject>(Language.Swedish).For("cykel").InField(x => x.ord).GetResult();
            Console.WriteLine("RESULTS: ");
            foreach (var searchResult in result)
                Console.WriteLine("Result " +searchResult.ord );
Dec 02, 2014 15:08

I tried this now with the exakt word you are using and it didn't work for me, I added it to both one custom object and one standard page where I search with unified search.

Edited, Dec 02, 2014 15:14

Ok, I tried now to build a simple example and saw that my problem was that I did not defined field like you do.

If I use .InField ... it works, but if I does not define it or use InAllField it does not work.

Do you know if that is how it should work, or should it work using InAllFields?

Dec 04, 2014 9:40

I do know that it shouldn't work when searching in the all field. Stemming doesn't work at all in the all field.

See this for more info:


Edited, Dec 04, 2014 9:42

Ok, then I understand, that was what I was afraid of.
I have to redifine my searches to make them more effective

Dec 04, 2014 9:45

Is compound word splitting working in UnifiedSearch too? If I search for "hem" I do not get pages comtaining only the words "familjehem" or "hemtjänst".

Jan 16, 2015 12:59

There is currently a problem with short words during compound splitting due to a performance optimization that can make the splitting heuristics too relaxed.

We have a new version of the splitter implemented that should be much better but it will be available in a later version.

/ John Johansson, Backend Developer, Hosted Services

Feb 06, 2015 13:48
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.