[Insight][Search] Should support searching with "not start of string" keyword

Found in

EPiServer.Profiles.Client 1.6.0

Fixed in

EPiServer.Profiles.Client 1.8.0

Created

Nov 12, 2018

Updated

May 06, 2019

State

Closed, Fixed and tested


Description

Currently, the searching result only returns when we do searching with "start of string" keyword. But if we do searching with "not start of string" keyword, the result returns incorrectly. We should support searching with any-position-keyword of string

Precondition: There are

  • John Doe (jodo@example.com)
  • Jane Doe (jado@example.com)
    profiles
  • Invalid segment5 (manager = string)
  • Info.InferredCountry eq A1 (manager = segment5 manager)
    segments in the store

Steps to reproduce:
1. In Insight/Profiles, search for "Doe"
Expected: both John Doe and Jane Doe profiles return
Actual: No profile returns
2. In Insight/Segments, search for "segment5"
Expected: both Invalid segment5 and Info.InferredCountry eq A1 segments returns
Actual: Only Info.InferredCountry eq A1 (manager = segment5 manager) segment returns