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
3
votes
1 answer

Filter on IDs with RediSearch

Is there any way to restrict RediSearch results by a list of document IDs, which would be specified in the request? e.g. something like FT.SEARCH cars fast @id:{100,200,300} would return only fast cars having ID 100, 200, or 300.
mahemoff
  • 44,526
  • 36
  • 160
  • 222
2
votes
1 answer

Redisearch on Redis instead of Redis-Stack?

I want to use Redisearch. But problem is there is no Redis-stack docker image in my Organization's private registry. There is Redis version 5 and 6 though. Can I use Rediserach directly on Redis instead of Redis-stack or is there any other way to…
2
votes
1 answer

how to save a torch.tensor or np.array to redis and search vector similarity?

I'm in trouble with saving my data to redis with python code. just using redis and r.ft() the uploading data is going to be like this. also I want to refresh the embeddings in a different values in same ids. id is the data index and embeddings are…
ddrong
  • 21
  • 1
2
votes
1 answer

Installing RediSearch in Azure Cache for Redis

I have an Azure Cache for Redis instance running. I want to perform search on the data stored in the Redis cache using "RediSearch". For using RediSearch, it seems that installation of Redis Stack or a suitable extension is necessary. Is there a way…
sprash95
  • 137
  • 9
2
votes
2 answers

Does ServiceStack.Redis support RediSearch?

We currrently use ServiceStack for the majority of our APIs. We have come across the need to implement RediSearch against one of our Redis instances. Does ServiceStack.Redis support RediSearch? I know StackExchange.Redis does with the NRediSearch…
cgipson
  • 378
  • 1
  • 16
2
votes
1 answer

Redisearch unable to search nested JSON array

I am experimenting with use redis-search + redis-json. But facing problem querying on Nested Json with array. I created following JSON { "src":{ "location":[ { "ref":"/uuid/1/xyz", "key":"zone" }, …
2
votes
1 answer

rediSearch Cannot create index on db != 0?

I have installed the rediSearch module for an application, but I am getting the error Cannot create index on db != 0 do you know what it means?
2
votes
1 answer

How can we perform "Prefix Matching" in Redisearch over numbers?

I have a field marks. It is a numeric field so, as per Redis, we should perform search something like this: @marks:[10 5000] or @marks:[10 inf] But I want functionality as above and in addition with functionality as below @marks:10* So, I will…
2
votes
0 answers

how can I choose the fields to retrieve with FT.AGGREGATE?

I need to sort the documents by the field type equals folder and I only need the id to be retrieved, however, I can't seem to make only the id to be returned. FT.AGGREGATE Query:DirectoryItem * APPLY "@type == 'folder'" as isFolder LIMIT 0 50 SORTBY…
Jonathan
  • 4,724
  • 7
  • 45
  • 65
2
votes
1 answer

How to index JSON arrays in RediSearch?

I'm using the modules RedisJSON and RediSearch together to perform search queries on JSON data. For every JSON object, I need to index all the string elements in an array field to be able to get this object by querying one of the strings in the…
Elf
  • 153
  • 2
  • 12
2
votes
1 answer

Facing issue in usage of 'withApplies' in aggregate function using the library "MacFJA/php-redisearch"

Aggregate Raw query FT.AGGREGATE indexName "@geofield:[-83.81373 34.3755452645611 20 mi]" LOAD 1 @geofield APPLY "@cc_sum * ( 20 - (geodistance(@geofield, -83.81373, 34.3755452645611)) / 20)" as ccSumCalcValue APPLY 1 as test GROUPBY 1 @test REDUCE…
Mahe Krish
  • 141
  • 1
  • 7
2
votes
1 answer

RediSearch sort by numeric field then by distance when using geofilter

How can I sort results, first by some numeric field (for example by price) then by distance when using GEOFILTER in RediSearch?
zigzag
  • 579
  • 5
  • 17
2
votes
1 answer

Searching inside the Payload of redis

I want to search inside the payload of a value in Redis using Flask. This is the code that I have written # to fetch value: localhost/suggestions?prefix= @app.route('/get') def get(): try: prefix = request.args.get('prefix') …
Rahul
  • 39
  • 1
  • 5
2
votes
1 answer

Adding Prefix when creating an Index using Jredisearch

I use Jredisearch(com.redislabs:jredisearch:2.0.0) to store data in an Index. I want to add a prefix while creating the Index. I am able to add prefix using the below Redisearch command FT.CREATE MyIndex ON HASH PREFIX 1 doc: SCHEMA name TEXT But…
2
votes
1 answer

Redisearch equivalent for a MySQL query

I'm looking for the Redisearch equivalent of the following query: NOT (topic_id = '123' AND post_id <= '456') I tried the following - it works but doesn't look like the most elegant solution: -(@topic_id:[123 123] @post_id:[-inf 456]) topic_id and…
J. Chris
  • 21
  • 2
1
2
3
9 10