SaaS CMS has officially launched! Learn more now.

Search in Catalog with Mediachase.Search


Hi Team,

Please help on below of my query.

I am trying to implement Mediachase.Search functioanlity for Catalog, using below code for that but I am getting 0 items in response.

Can someone please check my ocde and help me asap to implement this functioanlity.

SearchManager searchManager = new SearchManager(AppContext.Current.ApplicationName);

CatalogEntrySearchCriteria criteria = new CatalogEntrySearchCriteria();
criteria.SearchPhrase = "Electrolux Catalog";
SearchManager manager = new SearchManager(AppContext.Current.ApplicationName);
var result = manager.Search(criteria);



Oct 15, 2017 11:34

Please  note that "Electrolux Catalog" is the calalog name in my prpject.

Oct 15, 2017 11:35

CatalogEntrySearchCriteria has a property CatalogNames. If you want to search within "Electrolux Catalog", then you have to add it to CatalogNames, instead of setting it to SearchPhrase 

Oct 17, 2017 12:39

Tried with this code also but no luck. Can someone help me on this?

criteria.CatalogNames.Add("Electrolux Catalog")



Oct 17, 2017 12:45

Try setting the following

criteria.Locale = "en"
criteria.MarketId = market.MarketId,
Oct 17, 2017 18:29
<p>Thanks,&nbsp;this solutions is working for me :)</p>
Oct 27, 2017 11:07
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.