Knowledge Base — Errors and Debugging

Problem : User search using keyword query via search API does not work after 9.1 upgrade

Applies to Ektron WCM

Symptoms

  • After upgrading from 9.0 to 9.1, keyword search using user name, display name, or any fields below does not work.

    • ebtfirstname
    • ebtlastname
    • ebtdisplayname
    • ebtemailaddress
    • ebtusertags
    • ebtmapaddress

Causes

  • If a field needs to be keyword searchable, it needs to be subject to linguistic processing. For the user fields mentioned here, since there is no language information, Ektron cannot do linguistic processing. Hence, we removed support for keyword searches on these fields.

Solutions

  • Change the keyword search code so that it uses the appropriate property expression. For example, change:

    criteria.QueryText = <firstname>;

    To:


    criteria.ExpressionTree = SearchUserProperty.FirstName.Contains(<firstname>) |

    SearchUserProperty.LastName.Contains(<firstname>);

     

What Do You Think of our New Design?

    

Have more to say? We’d love to hear it!