Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Why redis search not found whit composed label

$
0
0

im try to query by secondary index in my redis.When i query the redis whit single label its works, for example:

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

But, when i query to a composed label like this:

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

I recibe the next errors: "Syntax error at offset 9 near profileName"

The composed label see like this:Redis labels schema

And the idx its 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();

Someone can help me!Thanks :D


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>