How to perform autosuggestion search on value of redis key

21 views
Skip to first unread message

Swapnil Dubey

unread,
Dec 8, 2017, 6:50:10 AM12/8/17
to Redis DB
I had hash having key ListID and field email , phone number .Now i need to perform search on email and phone number to find listid which have email and phone number.

Swapnil Dubey

unread,
Dec 10, 2017, 11:48:36 PM12/10/17
to Redis DB
Hi,

Is there any way to perform autosuggest search on field value and get all keys matching in hmset.

Danni Moiseyev

unread,
Dec 11, 2017, 4:44:11 AM12/11/17
to redi...@googlegroups.com
There is no easy way to do that in Redis itself, there isn't any built-in indexing in redis.
Having said that you can use https://github.com/RedisLabsModules/RediSearch to index document and use FT.SUGGEST command.

Disclosure: I work for Redislabs.

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages