question

cullen avatar image
cullen asked

UGC Search behavior changed.

We noticed yesterday that we are no longer getting search results back when calling PlayFabEconomyAPI.SearchItems with something entered in the Search field. We allow users to enter a search term, and are appending * to their entry. Up until yesterday, this seemed to work fine, and allowed for both exact and partial matches. Now, we are getting nothing back for partial matches, with or without the *, and exact matches function only without the *. Has something changed recently on your end?

apis
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kylemc@microsoft.com avatar image kylemc@microsoft.com commented ·

I suspect the special characters you're using got interpreted as markdown and aren't showing up in the question. Can you edit the post?

0 Likes 0 ·
cullen avatar image cullen kylemc@microsoft.com commented ·

Not sure if I can edit it. The character we are appending is '*'.

0 Likes 0 ·

1 Answer

·
kylemc@microsoft.com avatar image
kylemc@microsoft.com answered

For the general availability release, we now automatically escape all lucene special characters in search queries. In most cases, this just prevented input validation errors, but '{asterisk}' is the lone exception. We've discussed supporting it officially, but we don't have a plan to at this point in time. After this behavior change, specifying '{asterisk}' in the input will look for the character literal and not a wildcard.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.