Questions tagged [redisearch]

For questions about how to use RediSearch, the open-source search tool built on Redis in which the indexes are entirely in memory.

RediSearch is a Redis module that provides querying, secondary indexing, and full-text search for Redis. To use RediSearch, you first declare indexes on your Redis data. You can then use the RediSearch query language to query that data.

RediSearch uses compressed, inverted indexes for fast indexing with a low memory footprint.

RediSearch indexes enhance Redis by providing exact-phrase matching, fuzzy search, and numeric filtering, among many other features.

149 questions
2
votes
2 answers

RediSearch library for Scala?

I am developing Scala webservice and using Redis to store and retrive the values. I want to use RediSearch module to improve the search performance by using indexes. I have researched a lot and could not find any client library for Scala…
Rajkumar G
  • 247
  • 1
  • 4
  • 13
1
vote
1 answer

How to structure data in Redis for Vector Similarity Search over complex data?

I am currently working on implementing Vector Space Search (VSS) queries over vector embeddings in Redis. While I understand how to perform queries in a simple scenario with a single set of vectors, I am struggling to adapt this approach to more…
SteroidMan
  • 11
  • 1
1
vote
1 answer

How to apply multiple query parameters with redis-om (for python)

A classic. One wants to submit multiple optional search/filter criteria. e.g. "Return all only cats" would result in Animals.find(Animals.type == "cat").all(). Great, but what if one wants to optionally filter by age. One needs another if-statement…
feder
  • 1,849
  • 2
  • 25
  • 43
1
vote
1 answer

Is it possible to use RedisJson and RedisSearch to filter objects by the length of array property?

If I have multiple keys of JSON type in Redis DB that have the following form (Each key have different amount of users) { "users": [ { "name": "Alice", "age": 15 }, { "name": "Bob", …
Yaniv
  • 63
  • 6
1
vote
1 answer

How to create a blob representation of a vector embedding in JavaScript to use with a Redis vector similarity search

Having a vector embedding like [1,2,3,4], I can create a blob byte representation with Python using the NumPy library using something like this: np.array([1,2,3,4]).astype(dtype=np.float32).tobytes() This will create an output that looks like…
1
vote
1 answer

Unable to get all data from redisearch when sharding redis

When I try to get some data from redis using the redisearch command; ft.search index:something * I only get a small portion of what exists across all my redis nodes. In my case I got 5 entries out of 19. I have 6 nodes, using redisjson +…
1
vote
1 answer

Very basic Redis index and search not working

I'm starting with Redis (v7) and the lettucemod (v3.1.6), and trying to simulate an index/search sample found in redis docs. But I'm not able to get the right result. Below the sequence of actions taken in redis-cli: root@redis01:~# redis-server…
JBalaguero
  • 181
  • 2
  • 13
1
vote
1 answer

RedisJSON and Python3: JSON.get and ft('index').search(Query('@orig_ip:{192\.168\.210\.27}')) returning no results (matching entry in redis)

I am new to redis and created an index and am attempting to ingest Zeek Logging Data, create an index for multiple fields, and then search fields in that index. For the life of me, I cannot get any values to return when searching for the @orig_ip…
Taylor Paul
  • 364
  • 2
  • 9
1
vote
2 answers

StackExchange.Redis.RedisServerException: 'OFFSET exceeds maximum of 10000'

Is there a way to get around this when using RediSearch FT.SEARCH? I basically want to get all the possible results for a search. I can page through them using the LIMIT offset count parameters but it errors out when I hit an offset higher than…
cgipson
  • 378
  • 1
  • 16
1
vote
1 answer

RediSearch: OR union on 2 tag fields doesn't work?

Hello I am new to using Redisearch. When I try to do a search on 2 tag fields with or union, something like FT.SEARCH Idx "@TagOne:{tag} | @TagTwo:{tag}" redis reports syntax error, apparently @Tag{} doesn't work of it is in front of '|' but it is…
yufan ren
  • 11
  • 1
1
vote
2 answers

Returning only the first 10 record - Redis OM

I’m using Redis OM for spring boot, I am having trouble querying objects because it only returns the first 10 records. Repository Class: public interface RedisBillerRepository extends RedisDocumentRepository { List
1
vote
1 answer

Redis Redisearch Aggregate GroupBy multiple column

I would like to in redisearch a query similar to : SELECT groupA, groupB, sum(value) as totalvalue FROM tableA WHERE groupC = 'C' GROUP BY groupA, groupB How can I do it in redisearch? Is it possible? I can only do one group at the moment…
eko
  • 33
  • 4
1
vote
2 answers

How to the @ symbol in RediSearch?

I'm using the modules RedisJSON and RediSearch together to perform search queries on JSON data. Given a json list like this: {"email": "test1@example.com", "is_checked": 1} I do: FT.CREATE myidx ON JSON SCHEMA $.email AS email TAG FT.SEARCH myidx…
LeMoussel
  • 5,290
  • 12
  • 69
  • 122
1
vote
2 answers

Why is RediSearch slow when sorting numeric field?

I'm using RediSearch in my project which has an index with over 13 millions documents. I need to fetch latest documents if there is no filter provided by users. My index schema has a NUMERIC field with SORTABLE flag and I've tried to run following…
ozgurky
  • 126
  • 1
  • 5
1
vote
2 answers

Redisearch query with partial match

I'm encountering a little issue with the FT.SEARCH command from redisearch: For this data whose value is this one: ns=2;s=OIGateway:ArchestrA.ACU.AO_ACU230_AIn_CabTp.fa_A2OutOfRan How come this query: FT.SEARCH index 'ns 2 s oigateway archestra acu…
Dat Nguyen
  • 232
  • 2
  • 15