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

How do I install RediSearch into AWS ElastiCache or Amazon MemoryDB?

Is it possible to install RediSearch (Redis Module) either in AWS ElastiCache or MemoryDB? Creating inverted indexing manually can be a real pain and it would be nice to have this feature available in AWS. I've found a possible workaround to install…
6
votes
1 answer

Using RediSearch: Module Disabled in Open Source Redis

I'm currently using Redis V4.09 on Ubuntu 18.04 and I downloaded RediSearch from https://redislabs.com/redis-enterprise-software/download-center/modules/ The module runs correctly with the Redis Server but when I try to use a command from RediSearch…
Yun Jae Jung
  • 139
  • 1
  • 8
6
votes
1 answer

How to store dates/times in RediSearch

I've read that RediSearch has support for dates and times via the "numeric" type, but there's not much information about this. Does this mean I just choose my own conversion from time, such as seconds since 1970?
mahemoff
  • 44,526
  • 36
  • 160
  • 222
5
votes
3 answers

Redisearch not work in a cluster?

Our team are thinking of using redisearch on top Elasticsearch as a store unit for real time data. When looking at the document: https://oss.redislabs.com/redisearch/Administration/ I see: RediSearch will not work correctly on a cluster. Does it…
Minh Anh Tran
  • 145
  • 1
  • 7
5
votes
2 answers

Sending arbitrary commands to redis using ioredis

Is it possible to send arbitrary commands to Redis using ioredis for Node JS? For example, I'm using the new RediSearch module, and want to create an index using the command: FT.CREATE test SCHEMA title TEXT WEIGHT 5.0 How would I send this command…
Jesse Reilly
  • 186
  • 2
  • 11
4
votes
1 answer

cannot open shared object file: Permission denied

I am successfully building the redisearch.so module on travis-ci. After the module is built, I instruct the Redis to load it like this redis-cli MODULE LOAD $TRAVIS_BUILD_DIR/rs/build/redisearch.so which gives me the following error 5439:M 17 Nov…
4
votes
1 answer

can we specify different field weights while searching in redisearch?

When we create an index on redisearch, we specify different fields with their weights e.g. title text weight 50 description text weight 25 and as per my understanding these weights determine the ordering of results. I want to know is there a way to…
Mohsin Sethi
  • 803
  • 4
  • 16
4
votes
0 answers

Redisearch - how does optional query and weight attribute works?

In RediSearch, how do optional query and weight work? Right now, when I try to search a keyword and use an optional query with weight to boost result, it doesn't seem to do anything. I have tried RediSearch 1.4.0 and 1.4.15. I have an indexed…
Mohsin Sethi
  • 803
  • 4
  • 16
4
votes
1 answer

Usage of RediSearch for simple string and integer indexing on entities

I need to store simple entity objects (C#) in Redis. I need also to search for them using secondary indexing and exact matching. After struggling with Redis natvie data types, I chose to try RediSearch for this task. However I can't find how to use…
Alberto Pastore
  • 193
  • 2
  • 14
4
votes
1 answer

For RediSearch, is it better to create a single index or multiple indexes?

Am building an Index using RediSearch in a multi-tenant application that has got: 150,000 tenants Each tenant has on average 3,500 customers Each customer has 10 fields that will be added to the index All of the fields are TextFields. Question…
lukik
  • 3,919
  • 6
  • 46
  • 89
4
votes
1 answer

How to write a query to both include and exclude tags in RediSearch?

I want to include and exclude a set of tags in RediSearch queries. How can I do it? The query below is what I am trying to do: FT.SEARCH permits "@tags:{DE | EN | -(NO | EE)}" It gives an error: (error) Syntax error at offset 17 near 'EN' What…
Dmytro Chasovskyi
  • 3,209
  • 4
  • 40
  • 82
3
votes
1 answer

redis-py ft().search() not returning results

I'm using the following test code to experiment with RediSearch using RedisJSON data. I would expect client.ft(candles_index).search("4h") to return the JSON data in the candles list, but there are no results returned. I've been using some of the…
Jason
  • 404
  • 4
  • 14
3
votes
1 answer

Tag Field search scoring in RediSearch

I am performing a REDISEARCH tag search only query like this: '@tags:{Food|Restaurant|Chicago}' I would like to sort the result based on number of successful matches of these tags in the document. So that: a document containing all 3 tags would…
Gotys
  • 1,371
  • 2
  • 13
  • 22
3
votes
1 answer

Filter search by tags with python redisearch client

I have an index with a TagField, created like this create_index([TextField("enc_id"), TextField("title", 2.0), TagField("tags")]) I would add a document like this. add_document(title = "meh, lol", tags = "python,C") I search like this. It has a…
Anna
  • 319
  • 5
  • 18
3
votes
3 answers

How do I make redisearch docker image persist data?

I'm using redislabs redisearch docker image locally for working with redisearch, but I would like the created indexes and documents still be there after restarting the redisearch container. I tried volume mapping - it didn't work. What did you do to…
1
2 3
9 10