episerver / EPiServer.Labs.Find.Toolbox

Find Toolbox features an improved synonym implementation, MinimumShouldMatch, MatchPhrase, MatchPrefixPhrase, FuzzyQuery, WildcardQuery and custom CMS search providers
Apache License 2.0
8 stars 2 forks source link

System.TypeLoadException when Searching using 1.2.1 prerelease version #4

Closed mttwParagon closed 1 year ago

mttwParagon commented 2 years ago

Describe the bug A clear and concise description of what the bug is. As the resolution to Issue https://github.com/episerver/EPiServer.Labs.Find.Toolbox/issues/2 I have installed 1.2.1 prerelease however I receive the following error:

System.TypeLoadException HResult=0x80131522 Message=Could not load type 'EPiServer.Find.Cms.MultiFieldQueryStringQueryExtensions' from assembly 'EPiServer.Labs.Find.Toolbox, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null'. Source=ChadwellSupplyEpiserver.Find StackTrace: at ChadwellSupplyEpiserver.Find.Services.FindProductService.GetProductTerm(String term) in C:\stuff\code\chadwell\EpiServer Commerce Web\WebsiteSolution\ChadwellSupplyEpiserver.Find\Services\FindProductService.cs:line 204 at ChadwellSupplyEpiserver.Find.Services.FindProductService.GetProductResults(SearchRequestModel filter, List1 activeWarehouseCodes, List1 validStates, Boolean isLTLShipMethod, UserAccount userAccount) in C:\stuff\code\chadwell\EpiServer Commerce Web\WebsiteSolution\ChadwellSupplyEpiserver.Find\Services\FindProductService.cs:line 367

To Reproduce Steps to reproduce the behavior:

  1. Our search code:

ProductSearchService.For(term) .InField(x => x.WebDescription) .InField(x => x.GetDisplayName()) //this is the product name //... additional .InField's here .InField(x => x.GetAggregatedBulletsForSearch()) .WithAndAsDefaultOperator() .UsingSynonymsImproved() .ApplyBestBets() .WildcardSearch(term, (x => x.Code, boostCode), (x => x.CrossItems, boostCrossItems), (x => x.GetDisplayName(), boostName));

  1. Searching for 'a simple search'
  2. Observe search results

Actual behavior no results regardless of search string. due to the Type Load Error above.

Expected behavior Search results should be returned for a valid term.

Additional information Find and CMS version: Find: 13.4.7 CMS: 11.20.9 Find Toolbox: 1.2.1 List of synonyms: Only one synonym - Unidirectional: "refill, replaces" > "replacement"

Additional context Original Issue https://github.com/episerver/EPiServer.Labs.Find.Toolbox/issues/2

dada81 commented 2 years ago

I can't reproduce. I don't define MultiFieldQueryStringQueryExtensions in this code. I don't recognize .WildcardSearch?