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
0 answers

Create index for Array values

I am trying to create Index for array values using Redisearch. here is the code c := redisearch.NewClient("127.0.0.1:6379", "redisearchDB") sc := redisearch.NewSchema(redisearch.DefaultOptions). AddField(redisearch.NewTextField("Code")) // Drop…
2
votes
1 answer

Can I run RediSearch on a separate server then redis?

Originally was trying to install RediSearch ontop of Aws ElastiCache but it seems they dont support modules in their managed service (makes sense). Then I was looking into running RediSearch on a separate EC2 instance with my VPC instance that would…
k9b
  • 1,457
  • 4
  • 24
  • 54
2
votes
1 answer

Search on multiple index in RediSearch

I'm using Redisearch for my project. there are different indexes in the project, such as job_idx, company_idx, article_idx and event_idx (article_idx and event_idx structure are very similar). The index is used on different pages, ex: job_idx used…
jojofrance
  • 21
  • 3
2
votes
2 answers

How to provide a password to the redigo client in redisearch-go (Golang)

I'm trying to use Go to connect to my RediSearch (Redis module) instance. Combing through the documentation and Go code that generates the client, I don't see how to pass authentication options to the Redigo client within... Is this an oversight on…
Devin Burke
  • 13,642
  • 12
  • 55
  • 82
2
votes
1 answer

Redisearch aggregate return top 5 of each group

Suppose I have documents in this format: product_name TEXT tags TAG score NUMERIC [product1, [tag1, tag2, tag3], 10] [product2, [tag2, tag3, tag4], 100] .... I want a query to return the tags in the order of the highest sum of product score and…
2
votes
1 answer

Redisearch prefix search always returns max 200 for total for multiple fields index

Using python RediSearch client to connect to RediSearch and doing a prefix search which should match 300 documents it only returns 200 if there is another TagField in the index: from redisearch import Client, Query, TextField, TagField client =…
2
votes
1 answer

How to execute a redis extension command with reactiveredisoperations in spring boot?

I'm trying to use redisearch with java/spring reactive api. So with nodejs redis client I could just use send_command function and pass any redis command I wanted as an array of strings. This was perfect for sending redisearch commands to redis.…
ape_face
  • 101
  • 1
  • 7
2
votes
1 answer

How to do a redisearch search for items that have @field with a - in it?

I have an redisearch index with products where the fields does contain special characters like "-". I'm keep hititng the wall with trying to do a search for products where the category field is "Multiroom-høttaler". Here is a sample entry straight…
Fredrik
  • 23
  • 3
2
votes
1 answer

Escaping character redisearch

Good afternoon, I got a problem with redisearch this afternoon at work. I would like to search a record with a specific value in its keys but this key has a special character in it. Example: Record_1: name: toto job: product manager town:…
rain481526
  • 21
  • 2
2
votes
1 answer

Redisearch: Boosting on query phrase match

Does Redisearch have any way to boost when a phrase in the query matches, even when it's not an exact phrase query, e.g. if the search is sushi bar, the sushi bar review should outscore sushi is best, bar none, while both still match. I'm wondering…
mahemoff
  • 44,526
  • 36
  • 160
  • 222
2
votes
0 answers

Term Frequencies in Redisearch

Is there a way in Redisearch to get the frequency of the term searched? For example if I had the following documents in Redisearch 127.0.0.1:6379> FT.CREATE myIndex SCHEMA fileName TEXT SORTABLE content TEXT SORTABLE docId TAG SORTABLE…
elizabetht
  • 627
  • 1
  • 8
  • 16
2
votes
0 answers

How to use RediSearch libraries from my C++ project?

I am developing a project in C++ that utilizes RediSearch. I would like to be able to call RediSearch functions in a form similar to #include utilizing CMake without having to alter the RediSearch project. This question…
patyx
  • 324
  • 1
  • 3
  • 17
2
votes
2 answers

How to get document ids from FT.AGGREGATE with Redisearch?

I would like to aggregate documents and returns only document ids. How to do it?
Math
  • 33
  • 3
2
votes
1 answer

Sanitizing a query for RediSearch

Is there any guideline on sanitizing the query term for RediSearch, e.g. certain characters such as * at the end of a term or @ - at start of term have special purposes in the query syntax and would be good to strip some/all of them out for queries…
mahemoff
  • 44,526
  • 36
  • 160
  • 222
2
votes
1 answer

Request specific fields (not all fields) with RediSearch

Here's an official example of a RediSearch query: 127.0.0.1:6379> FT.SEARCH myIdx "hello world" LIMIT 0 10 1) (integer) 1 2) "doc1" 3) 1) "title" 2) "hello world" 3) "body" 4) "lorem ipsum" 5) "url" 6) "http://redis.io" My question…
mahemoff
  • 44,526
  • 36
  • 160
  • 222
1 2
3
9 10