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
1
vote
1 answer

Get list of words from Redisearch index, sorted by most common occurrence

I have a simple redisearch index which I create in Python with: >>> from redisearch import Client, TextField >>> c = Client('common_words') >>> c.create_index((TextField('body'),)) b'OK' >>> c.add_document('ibiza', body='kevin paul dad') b'OK' >>>…
v25
  • 7,096
  • 2
  • 20
  • 36
1
vote
1 answer

How to implement full text search on encrypted document having several pages?

I have hundreds of documents and each document has several pages. A user can search within a document for a word or sentence. Now I am expecting all the files in return which contain the searched text. Currently using rest APIs with Angular as…
1
vote
1 answer

Redisearch query with "begin with" instead of "contains"

I am trying to understand on how to perform queries in Redisearch strictly with "begins with" and I keep getting "contains". For example if I have fields with values like 'football', 'myfootball', 'greenfootball' and would provide a search term like…
Urosh T.
  • 3,336
  • 5
  • 34
  • 42
1
vote
0 answers

Is it possible - use redisearch for caseless search?

So, using redisearch-py, search by 'test' and 'TEST' gives for me different results. How i can make a query for caseless full text search?
1
vote
1 answer

Polygon query in Redisearch

RediSearch looks promising after reading https://redislabs.com/blog/search-benchmarking-redisearch-vs-elasticsearch/. We use elasticsearch currently. We rely heavily on its polygon query feature…
sattu
  • 632
  • 1
  • 22
  • 37
1
vote
1 answer

What FRAGS argument does in RediSearch FT.SEARCH command?

I looked through RediSearch documentation and the syntax of FT.SEARCH below: FT.SEARCH {index} {query} [NOCONTENT] [VERBATIM] [NOSTOPWORDS] [WITHSCORES] [WITHPAYLOADS] [WITHSORTKEYS] [FILTER {numeric_field} {min} {max}] ... [GEOFILTER…
Dmytro Chasovskyi
  • 3,209
  • 4
  • 40
  • 82
1
vote
0 answers

Trying to run redisearch-go client example and wont compile

When I try to run the code on redisearch-go/client https://github.com/RedisLabs/redisearch-go I get the following error. ./docsearch.go:37:41: cannot use []redisearch.Document literal (type []redisearch.Document) as type redisearch.Document in…
Tommie Jones
  • 957
  • 1
  • 16
  • 37
1
vote
1 answer

Having trouble getting aggregations working.

I'm in the midst of exploring RediSearch and I thought I'd give the aggregations feature a shot and have hit a roadblock. I can't seem to get a good result. For testing purposes I created a basic index/schema like so: FT.CREATE test SCHEMA field…
Tombatron
  • 1,567
  • 1
  • 13
  • 27
1
vote
2 answers

RediSearch - see full query in error logs

I sometimes see errors like Error parsing query: Syntax error at offset 1 near 'x' in logs and unsure if there's any way to see the actual query in logs? There doesn't seem to be any way to configure this at present.
mahemoff
  • 44,526
  • 36
  • 160
  • 222
1
vote
2 answers

Both ElasticSearch and Redis, overkill usecase?

I'm currently designing the architecture of my project or atleast try to figure it out what will be useful in my case. ** Simple use case I will have several thousands of profiles in a backend and I to need implement a fast search engine. So…
Elfyxoxo
  • 11
  • 2
1
vote
0 answers

RedisSearch-php : How to search document?

I am new to Redissearch-php , i want performs query search on redis with redis search engine (php). i have tried example from this link : http://www.ethanhann.com/redisearch-php/searching/, but its always returning empty array, Please find code…
saw
  • 7
  • 3
1
vote
1 answer

How to set limit of redisearch default limit is 10 . i want to set 50

from redisearch import Client client = Client('myIndex') res = client.search(search_key) I want 50 results for res.
0
votes
1 answer

Redis: FT.SEARCH fuzzy matching sorting by distance to a provided coordinates

i have restaurants collection in my redis DB, the restaurant object stored in as bellow: { uid: "T8957Ixo1kRjtw3Nof3Ttase", name: "Restaurant name", address: "751 S 10th St, Philadelphia, Pennsylvania 19140, United States", location:…
0
votes
1 answer

Redisearch Python simple example

The documentation for Redisearch module is not the best at the moment. Can someone please give short examples that will answer these questions? Thank you How to use Redisearch module with redis-py? How to sort by multiple fields? How to paginate…
Teodor Scorpan
  • 868
  • 1
  • 10
  • 20
0
votes
1 answer

KNN Vector similarity search in Redis, is not returning any results

I am trying to use Redis to store the embedding vectors returned from the openAi API, then perform a similarity search to retrieve similar results, in NodeJs. For test purposes, I have 10 keys in Redis at the moment, but the query never returns a…