RediSearch / redisearch-go

Go client for RediSearch
https://redisearch.io
BSD 3-Clause "New" or "Revised" License
288 stars 65 forks source link

Index a document with Numberic Field, but get string type from Search. #150

Closed xjplke closed 2 years ago

xjplke commented 2 years ago

I create a schema and a document with a numberic field, and index this doc. Then I use the Search method to query it, but I get a value of string type from this field.

image
Avital-Fine commented 2 years ago

@xjplke Hey! That happens because redis returns strings by default. You need to convert it to numeric value by yourself.