'Redis search not found with composed label

I am trying to query by secondary index in my redis.

When I query the redis with a single label it works, for example:

FT.SEARCH LiveRooms-idx "@numUsers:[100 200]"

But when I query with a composed label like this:

FT.SEARCH LiveRooms-idx "@profile.profileName:'Panticosa, Aragón (España)"

I receive an error: "Syntax error at offset 9 near profileName"

The composed label see like this: Redis labels schema

And the idx is like this:

Field<String> activityType = Field.text("profile.activityType").build();
            Field<String> profileId = Field.text("profileId").sortable(true).build();
            Field<String> profileName = Field.text("profile.profileName").build();
            Field<String> creatorName = Field.text("creatorName").sortable(true).build();
            Field<String> totalDistance = Field.numeric("profile.totalDistance").build();
            Field<String> totalGain = Field.numeric("profile.totalGain").build();
            Field<String> maxSlope = Field.numeric("profile.maxSlope").build();
            Field<String> numUsers = Field.numeric("numUsers").sortable(true).build();
            Field<String> a = Field.numeric("profile.views.[0]").sortable(true).build();


Solution 1:[1]

Try to escape .

"@profile\.profileName:'Panticosa, Aragón (España)"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ariel