Unwanted Lucene Search Results in EpiServer Commerce R2
Issue: User was getting unexpected search results for products, e.g. with a search key word ‘Sate’ he was getting same result as for ‘Site’. Although for most of the clients they will happy with these results but this particular client was unhappy with this result due to their business requirements. We do not have any word like ‘Sate’ in our Database or in Index file for Lucene. Clearly it was Fuzzy search that was causing this although in code we have set FuzzySearch = false; Reason: // Perform Lucene search SearchResults results = searchFilterHelper.SearchEntries(criteria) as SearchResults ; In the Mediachase.Commerce.Website, Version=5.2.243.2, SearchFilterHelper's SearchEntries() method, below: public virtual ISearchResults SearchEntries(CatalogEntrySearchCriteria criteria) { try { _Results = Manager.Search(criteria); } catch (SystemException) { if (HttpContext.Current.IsDebuggingEnabled) throw; ...