Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.

 

Compound word splitting examples?

Vote:
 

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

http://world.episerver.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=109412

Will there be any examples of this?

#113968
Dec 02, 2014 13:47
Vote:
 

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"};

            client.Index(testObject);

            Console.ReadKey();

            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 );
            }
            Console.ReadKey();
#113979
Dec 02, 2014 15:08
Vote:
 

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.

#113980
Edited, Dec 02, 2014 15:14
Vote:
 

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?

#114077
Dec 04, 2014 9:40
Vote:
 

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: http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/8/DotNET-Client-API/Searching/Languages/

/Marcus

#114078
Edited, Dec 04, 2014 9:42
Vote:
 

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

#114079
Dec 04, 2014 9:45
Vote:
 

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".

#115713
Jan 16, 2015 12:59
Vote:
 

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

#116875
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.