Unable to parse provided filter clause in ContentApi.Search

Fixed in

EPiServer.Find 13.2.5

Created

Oct 11, 2019

Updated

Oct 31, 2019

State

Closed, Fixed and tested


Description

The EPiServer.ContentDeliveryApi.Search 2.6.0 was built with EPiServer.Find 13.0.1.

Dependencies
EPiServer.ContentDeliveryApi.Core (≥ 2.6.0 && < 3.0.0)
EPiServer.Find.Cms (≥ 12.7.1 && < 14.0.0)
Microsoft.AspNet.OData (≥ 6.0.0 && < 7.0.0)
Microsoft.AspNet.WebApi.WebHost (≥ 5.2.3 && ≤ 5.2.6)

=> When using this package with the new EPiServer.Find.Cms 13.2.3, an exception "Method not found" is raised.

// Compiled code in EPiServer.ContentDeliveryApi.Search 2.6.0
RangeFilter<float> rangeFilter = RangeFilter.Create(fieldName, (float)value, float.MaxValue);

// New method definition in EPiServer.Find
public static RangeFilter<float, float> Create(string field, float from, float to);

The return type of method is changed, and it causes a runtime error.