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); searchManager.BuildIndex(false);
CatalogEntrySearchCriteria criteria = new CatalogEntrySearchCriteria(); criteria.SearchPhrase = "Electrolux Catalog"; SearchManager manager = new SearchManager(AppContext.Current.ApplicationName); var result = manager.Search(criteria);
Please note that "Electrolux Catalog" is the calalog name in my prpject.
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
Tried with this code also but no luck. Can someone help me on this?
Try setting the following
criteria.Locale = "en"
criteria.MarketId = market.MarketId,