Try our conversational search powered by Generative AI!

Find Index too specific

Vote:
 

Hi,

We are using the latest FIND together with Episerver 8 and we are having troubles with the Index.

On our site we have a number of pages, for example: Thanks, Thank You etc and in the CMS, under FIND, if you search for "Thank" FIND will only find the Thank You page. How do you make it find both Thanks and Thank You? Such as an SQL LIKE.

Also, how do you prevent FIND from displaying any pages that have Display in Navigation Unticked?

Thanks

Jon

#133320
Sep 01, 2015 16:18
Vote:
 

Hello Jon

Are you using a unified or typed search?

David

#133325
Sep 01, 2015 18:29
Vote:
 

If you are using unified search you need to specifiy a language to enable stemming for example:

var results = client.UnifiedSearchFor("Thanks", Language.English).GetResult();

See this for more info: http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/9/DotNET-Client-API/Searching/Boosting-with-weights/


If you are using a typed search you need also need to specifiy a language to enable stemming but this also means you can filter on the VisibleInMenu propperty too:

client.Search<ArticlePage>(Language.English)
    .For("Thanks")
    .Filter(x => x.VisibleInMenu.Match(true));

See these for more info:  

http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/9/DotNET-Client-API/Searching/Languages/

http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/8/DotNET-Client-API/Searching/Filtering/Boolean/


                        
#133326
Edited, Sep 01, 2015 18:44
Vote:
 

Hi, Perfect that is exactly what we need. Many thanks.

We went for the Typed Search :)

Thanks

Jon

#133338
Sep 02, 2015 9:22
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.