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.
99
questions
0
votes
1
answer
10
views
Redisearch for JSON doesn't support key prefix option
I wanted to use redisearch with JSON data. But I wanted segregate JSON data in different namespace so that index created can only search on specific namespace. Currently redisearch index are created ...
-1
votes
1
answer
9
views
what happens if io.redisearch.client.Client.close() is not called in Redisearch?
I am using Redisearch through jredisearch api for storing the data in Redisearch Indexes. I access the Redisearch through io.redisearch.client.Client object with the args Client(String indexName, ...
0
votes
0
answers
22
views
Redis Cluster's Replicas Crash when Loading RediSearch Coordinator Module in AKS
We use Bitnami Redis-Cluster chart to deploy our cluster into AKS.
When kubernetes nodes are creating, the master nodes seems to load the module just fine.
The replica nodes crash a couple seconds ...
-1
votes
1
answer
34
views
How to get all the documents from an index in Redisearch?
I am using RediSearch and storing the data in an Index through documents. I want to get all the documents from the Index, please suggest.
1
vote
1
answer
48
views
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?
0
votes
0
answers
63
views
Redisearch, how to make it search faster?
I am using the free version of redis in docker.
My laptop has 32 gb RAM.
I have very large dataset about 11 gb worth of keys. Each keys has 14 columns in it (as json), I have few millions of keys.
I ...
2
votes
1
answer
20
views
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 ...
1
vote
1
answer
54
views
Redis Redisearch Aggregate GroupBy multiple column
I would like to in redisearch a query similar to :
SELECT groupA, groupB, sum(value) as totalvalue
FROM tableA
WHERE groupC = 'C'
GROUP BY groupA, groupB
How can I do it in redisearch? Is it possible?
...
0
votes
0
answers
66
views
Does Redisearch support join queries on multiple indices?
I have multiple indices in Redis and need to query two or more of them together like joining tables in a DB. Is it possible to the same way on Indices in Redisearch?
1
vote
0
answers
86
views
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 &...
1
vote
1
answer
77
views
How to the @ symbol in RediSearch?
I'm using the modules RedisJSON and RediSearch together to perform search queries on JSON data.
Given a json list like this:
{"email": "test1@example.com", "is_checked": ...
2
votes
1
answer
401
views
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 ...
3
votes
1
answer
290
views
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 ...
1
vote
2
answers
133
views
Why is RediSearch slow when sorting numeric field?
I'm using RediSearch in my project which has an index with over 13 millions documents. I need to fetch latest documents if there is no filter provided by users. My index schema has a NUMERIC field ...
1
vote
2
answers
97
views
Redisearch query with partial match
I'm encountering a little issue with the FT.SEARCH command from redisearch:
For this data whose value is this one: ns=2;s=OIGateway:ArchestrA.ACU.AO_ACU230_AIn_CabTp.fa_A2OutOfRan
How come this query:
...
0
votes
1
answer
163
views
NRediSearch - Getting total documents matched count
Is there a way to get a total results count when calling Aggregate function?
Note that I'm not using Aggregate function to aggregate results, but as an advanced search query, because Search function ...
2
votes
1
answer
26
views
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)) /...
1
vote
0
answers
83
views
Using Redisearch in Concurrent Requests
I have deployed an API using Laravel 8 in M6G 8X Large Server. My System architecture is as follows.
Client -> NGINX -> PHP-FPM -> Laravel API -> PGBouncer -> PostgreSQL/PostGIS
The API ...
1
vote
1
answer
84
views
Issue in integrating php-redisearch with laravel 8
I have installed the plugin MacFJA/php-redisearch using the following command
composer require macfja/redisearch
Issue:
Complete code:
<?php
namespace App\Console\Commands;
use Illuminate\...
2
votes
1
answer
244
views
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?
2
votes
1
answer
108
views
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=<name>
@app.route('/get')
def get():
...
-1
votes
1
answer
483
views
Redis query is showing only 10 results while searching for a particular data
I have a .net core microservice integrated with Redis/RediSearch. I do a search that should return 13 hash documents but returns only 10. In elasticSearch there is a default size parameter(10) but in ...
2
votes
1
answer
78
views
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 ...
-1
votes
1
answer
145
views
Auto Complete using redis and Flask
I am new to Redis and Redisearch.
I want to create an autocomplete using redis in flask app.
Below is what I have tried so far,
autocomplete.py:
import redis
import redisearch
from flask import Flask,...
0
votes
1
answer
99
views
How to create a hash scheme and perform a search using NRedisSearch
I have these commands
> FT.CREATE feeders ON HASH PREFIX 1 MOC: SCHEMA MOC TEXT H_W TEXT H_Y TEXT F TEXT
...
> FT.SEARCH feeders "@MOC: MOC111"
How to do this using NRediSearch ?
0
votes
1
answer
103
views
Does it make sense to have dynamic indexes in RediSearch?
For example: consider that a hash (lets call it Event) has two searchable properties: user_id (num) and name (text).
However, whenever I need to filter events by name I aways have the user_id at hand.
...
1
vote
1
answer
171
views
Is there support Redis Search and Redis JSON support in redis-py client
Is it perform redis search in redis json in redis-py in current version? If yes please provide some sample code? Thank you in advance
0
votes
1
answer
197
views
Error when installing RediSearch on centos 7
I am running "make setup" to install RediSearch on linux centos 7. The problem is:
make setup
Setting up system...
yum install -q -y ca-certificates
yum install -q -y curl wget
/usr/bin/...
1
vote
1
answer
54
views
Any recommended PHP package for redisSearch?
I thought, surely there must be php developers out there who use redisSearch. I have only seen two packages for this RedisSearch-php by Ethan Hann and php-redisearch by MCFJA. They return empty ...
0
votes
1
answer
43
views
Pipelining redisearch-py commands
Is there a way to send multiple redisearch commands in a single pipeline using redisearch-py client? Also is it possible to mix the classic redis commands with the redisearch commands in the same ...
1
vote
1
answer
272
views
RediSearch - searching for particular word which occurs in many records take long time. How to improve it?
I have addresses database (as hashes) with about 30 millions records. I was adding text index to all addresses fields. Searching looks ok until I want to search word which occur in many records. For ...
0
votes
1
answer
213
views
RediSearch Suggestions - Delete all suggestions
RediSearch Suggestions are very useful.
What I couldn't figure out: how to delete all suggestions?
The command reference explains how to add and remove words. But it looks like there is no way to ...
0
votes
1
answer
651
views
How to remove all the documents from an index in Redisearch?
I want all the documents to be removed from a particular index in Redisearch. I have come across commands for deleting records with the documentid known. Can we delete all the records without using ...
0
votes
0
answers
224
views
Documents having uppercase fields aren't returned when using lower case letters for TEXT field search using FT.search in Redisearch
I am using Redisearch module in Redis and trying to search for a value in TEXT field using below query. It returns all the documents with lower case values like 'test or Test' and no data which has ...
2
votes
1
answer
249
views
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:
-(@...
0
votes
1
answer
360
views
Is AGGREGATE FILTER expect case sensitive query expression in Redisearch?
I am using Redisearch module in Redis and trying to filter the data stored in Redis index using the following query.
FT.AGGREGATE MyIndex * GROUPBY 1 "@MyField" FILTER "@MyField=='value'...
1
vote
0
answers
279
views
Redis issue on module-redis-fork
Issue
Hi everyone,
I have an issue while trying to interact with Redis in those conditions:
Redis instance with Redisearch module,
Create node-redis client before Redis module fork is ongoing,
Redis ...
2
votes
0
answers
148
views
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....
0
votes
1
answer
528
views
Associate a document with one index only (Redisearch)
I use multiple indexes on a single Redisearch, and each index is associated with a class in the code.
For example, the data of XYZ ( List<XYZ> ) is saved via an index XYZ, whereas the data of ...
2
votes
1
answer
439
views
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 ...
1
vote
1
answer
358
views
RedisSearch Go Client How to use Geo Field
I have tried to use redisearch-go library with Geo Field.
I don't understand how to set a Geo Field to the document.
My schema is as below.
schema := redisearch.NewSchema(redisearch.DefaultOptions).
...
0
votes
0
answers
130
views
Making RediSearch and MongoDB full text search give the same results
This RediSearch page refers to 5 scoring models listed below.
We are using MongoDB as our primary store, but using RediSearch for faster cached queries. We would like the same result for each.
Does ...
1
vote
0
answers
137
views
How to setup the redisearch configuration in flask?
I'm trying to use the below code. But configuration setup not yet mentioned here. Searched so many blogs but not found.
from redisearch import Client, TextField, IndexDefinition, Query
# Creating a ...
0
votes
1
answer
612
views
Range query in Redisearch with Python client
I'm trying to query a range of values in Redisearch with the python client but it's not reading the space in between the values correctly. Any thoughts on how to fix?
conn = redis.Redis(host='...
3
votes
1
answer
882
views
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
...
0
votes
1
answer
286
views
How to retrieve data from RediSearch with Rust?
I'm trying to use Rust and get autocomplete data from RediSearch with the FT.SUGGET command but it ends up retrieving a None value even though when I run FT.SUGGET directly with the command prompt it ...
6
votes
1
answer
1k
views
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 ...
1
vote
1
answer
613
views
How to run RediSearch module with Redis on WSL (Windows Subsystem for Linux)
I followed the steps on https://redislabs.com/blog/redis-on-windows-10/ and have installed Ubuntu 18.04 and am successfully running Redis v4.09 on Windows. But, when following the steps on https://oss....
0
votes
2
answers
1k
views
Using RediSearch with NRediSearch (C#), how to apply OR clause on two numeric fields like i.CountyId == id || i.CityId == id
I am developing a .Net Core web app with RediSearch. Previously I have used in-app memory cache, but I have to change it to distributed cache. The issue is, the web app has very complex searches which ...
2
votes
1
answer
318
views
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 ...