question

autreras avatar image
autreras asked

Query for searchable strings in DisplayProperties

Hello there =)

We are trying to use custom tags to upload UGC, so that the users write some tags. Since the Tags property of the items is hardcoded using the game manager and we want the users to create their own searchable tags, we created a workaround using DisplayProperties.

If we look at the following article: https://learn.microsoft.com/ja-jp/gaming/playfab/features/economy-v2/catalog/content-types-tags-and-properties

We can see that searchable strings cannot be used in the filter or order by statements. If an user adds tags such as: Tags : fire,sword,magic

How can we query for it using the SearchItemAPI, considering it is in a display property and we can only manipulate the "Select" field?

Thank you in advance

apisIn-Game Economy
10 |1200

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

1 Answer

·
Neils Shi avatar image
Neils Shi answered

The SearchItems API executes a search against the public Catalog using the provided search parameters and returns a paged list of items. Please note that Filter, OrderBy, and Select are OData Query additions that can be used to alter the search parameters, and Searchable String display properties cannot be used in these statements. Thus, unlike Tags, you can only use the Search parameter to perform a plain text fuzzy search of the Searchable String Display Properties fields.

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.