Hey guys :slightly_smiling_face: Do any of you kno...
# community-help
c
Hey guys 🙂 Do any of you know if this would be possible (in the current release) at all? Query by non-string fields: https://github.com/typesense/typesense/issues/490
We'd like to avoid the need of parsing in a
string
as an
int
on the consumer side. One workaround we think could work, is to have some top level properties which are solely used for searching on. Then have some kind of "payload" property to store the contents in the correct data form.
k
Only string type can be queried upon. If you need to do that for a numerical field, you need to have a string version as well.
👍 1
j
There’s also the string* data type which will automatically convert the int to string when storing in Typesense
👍 1
c
Cheers guys, will have a look into the
string*
, otherwise will go with the workaround I mentioned