Lucene Search is returning zero result

Vote:
 

Hi,

We are facing some issue in below of our code, please help us asap.

As we are using below code in our application but its returning zero result.

 

Please help urgently asap.

 

CatalogEntrySearchCriteria criteria = new CatalogEntrySearchCriteria();

            criteria.SearchPhrase = "kitchen";

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

            SearchResults results = manager.Search(criteria);

Thanks

Om

#183543
Oct 17, 2017 9:42
Vote:
 

Hi Om,

I had the same issue. I had multiple languages enabled, so I had to add criteria.Locale = "en". The "en" has to be replaced with the current language settings of the website.

Hope this helps.

Regards,

Lisanne

#204527
Jun 05, 2019 12:01
* 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.