Working with Find in Ektron

Vote:
 

The documention for Episerver Find and Ektron is lacking.  I'm using the only full sample code I've found https://support.episerver.com/hc/en-us/articles/115004126086-Using-EPiServer-s-Find-search-With-Ektron and our index is returing everything.  We have a lot of smartforms and content blocks that we use as helpers that we dont' want in search results. For example, we have a configuration smartform that doesn't need to be indexed but we have new release smart forms that DO need to be indexed.  I can not find any examples as to how to go about doing this.

Anybody have any experence with Find in Ektron who can help me out?   

#195597
Jul 31, 2018 21:08
Vote:
 

Check out this link: https://webhelp.episerver.com/Ektron/documentation/documentation/wwwroot/cms400/v9.10/reference/Web/Search/Find.htm 

Episerver is not the same as Ektron's Episerver FIND

Ektron find does not come with the out of the box Episerver FIND UI for boosting, best bets etc. It only indexes the content (and re-indexes) and returns the results. 

#195599
Jul 31, 2018 21:27
Vote:
 

I've looked through the documentation and can't find any examples of how to filter out the search results.

I'd like to have more examples of HOW to filter out some smartforms from the results, while keeping others.  I'm not finding any examples of that.

#195600
Jul 31, 2018 21:39
Vote:
 

Hi Valina,

You can do something like this:

// Press release xml config id = 11

// Events xml config id = 12



var epiResult = client.Search<Ektron.Cms.Find.Models.SmartForm>()
.For(term)
.Filter(i => i.XmlConfigId.Match(11) | i.XmlConfigId.Match(12));

This will give you all the results for press releases and events smart forms.

#195617
Edited, Aug 01, 2018 17:16
Vote:
 

Thank you :) That was very helpful.  I think I finally have something working a lot  better now.

#195644
Aug 02, 2018 16:11
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.