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

RedisSearch return same data irrespective of query

Search Query: FT.search logIndex "@country:{Brazil}" return 3 user_id timestamp country Returned Values: instead of country Brazil it is returning the data of China. I did not find any solution to this problem or may be I am new to RediSearch.
0
votes
0 answers

Redis Index takes too long to take into account the keys I have in my redis server

I only get a part of the data that seems to correspond to the query and each time I requery the data , I get more and more results ,I am using TIMEOUT 0 but the issue persists , and I have no idea as to why Redis has this behaviour.I am not…
vincent_01
  • 13
  • 2
0
votes
0 answers

How to load RediSearch module in Redis stack server installed using docker

i installed Redis Stack Server using this command using docker docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest but when i am trying to use the redis-cli on the terminal to see the modules using MODULE LIST it…
0
votes
0 answers

RedisSearch query for selecting rooms based on specific average AfterDiscountAmount between two dates and filtering blocked days

I have an issue when I want to write a query against nested arrays on RedisSearch. I have stored many keys; a sample of those values is JSON: { "Id": "100000", "RoomName": "Electronics", "DailySpecs": [ { "RoomId": "100000", …
iman safari
  • 194
  • 1
  • 1
  • 8
0
votes
1 answer

What does `SlowLog` in `RedisSearch` depends on?

I'm working on RedisSearch queries, I wonder about SlowLog. When my keys are more than 500k , all of my queries log as SlowLog, even the following simple Aggregate query: FT.Aggregate roomDailySpecs-idx * GroupBy 1 @RoomId Reduce AVG "1" @Price as…
iman safari
  • 194
  • 1
  • 1
  • 8
0
votes
1 answer

redissearch tag field fuzzy search

I want to perform fuzzy search in redissearch. Let's say I have "JEREMY,J" in tag field in the database. I want to find JEREM. I tried FT.SEARCH employee "@FN_Tags:{JEREM}~0.2" but it doesn't appear to work Right now the only query that appears to…
user732456
  • 2,638
  • 2
  • 35
  • 49
0
votes
1 answer

Aggregate Issue with Redis Search

I have recently started learning Redis Search and encountered a few issues while working on a specific example. I am storing multiple entries, each containing a tag called accountID and a size. My goal is to calculate the sum of sizes for each…
Valdemar
  • 2,560
  • 3
  • 18
  • 14
0
votes
1 answer

How to generate MetaModel for Redis Document entity to use in Redis OM EntityStream queries

I use Redis OM Spring Entity Streams, which provides a Java 8 Streams interface to Query Redis JSON documents using RediSearch. I want to generate a metamodel like Person$ to run the code below. But I couldn't figure out how to generate the…
efk
  • 41
  • 5
0
votes
1 answer

RediSearch fails to aggregate when 1kk+ keys

when i do the aggregation for 1 day the result is returned here is an example query FT.AGGREGATE myIndex '@date:[1632776400000 1632862800000]' GROUPBY 1 @name REDUCE COUNT 0 AS count SORTBY 2 @count DESC MAX 10 but if you remove the…
Alexus
  • 21
  • 2
0
votes
2 answers

Is it possible to build a faceted search with Redisearch?

Consider the following model: { id: string; name: string; description: string; price: number; brand: string; size: string; color: string; } Using RediSearch, is it possible to get a list of counts for each field mapping that exists…
JKasper11
  • 772
  • 1
  • 7
  • 21
0
votes
0 answers

Redis: ft.search people-idx returns 1) (integer) 0

I want to make a people index in Redis, containing all values from table a css table. I imported the following CSV…
Imme
  • 15
  • 4
0
votes
1 answer

REDIS: recommendations for efficient prefix search

For our use case we have to index about 100K documents containing one text field, which most of the time consists of a single word (e.g. nickname), and several numeric fields. Also, we need to be able to run prefix queries on the text field in an…
pAkY88
  • 6,262
  • 11
  • 46
  • 58
0
votes
2 answers

How to search for text and filter?

UPDATE: This is fixed in 0.8.0 I am trying to search for filter by an indexed field and search for free text inside my objects. It seems that it is searching for the company name or the search term. How do I make this an and for…
rjdkolb
  • 10,377
  • 11
  • 69
  • 89
0
votes
1 answer

how to do a basic query with redis in python?

I have a redis store with some JSON docs. I want to do a query matching {status: 'new'} How do I do this with redis? There are some docs that show the CLI but they assume I have already got an index. redis.cloud:6379> FT.SEARCH myIdx…
dcsan
  • 11,333
  • 15
  • 77
  • 118
0
votes
1 answer

Is there a way to search all fields with redis-om-spring using the EntityStream API?

In redis-om-spring I can search all fields by simply adding a search method to the repository. public interface ProductRepository extends RedisDocumentRepository { Page search(String text, Pageable pageable); } When…
rjdkolb
  • 10,377
  • 11
  • 69
  • 89