164 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
17
views
RediSearch: How to perform prefix search on email addresses with dots and special characters?
I'm using RediSearch 8.2.1 with the following index schema:
FT.CREATE contacts_idx ON HASH PREFIX 1 "contact:"
SCHEMA
id NUMERIC SORTABLE
name TEXT NOSTEM SORTABLE
email TEXT ...
1
vote
1
answer
54
views
How to use RediSearch to find all items with 2 matching properties on object in array property
Using RedisJSON and RediSearch i cant figure out how to query on multiple properties of a child object in a child array.
Currently i am getting any item where any of the child objects matches either ...
0
votes
1
answer
141
views
Redisearch module doesn't load if CONFIG command is disabled
In redis.conf when I add
rename-command CONFIG disable-config
loadmodule redisearch.so
And start the server as,
redis-server redis.conf
The server doesn't start and fails with error
Assertion ...
0
votes
1
answer
58
views
Why Redis JSON index creation/querying with non-English languages doesn't work? [closed]
I create the index:
const searchSchema: any = {
"$.Id": { type: SchemaFieldTypes.TEXT, AS: "Id", NOSTEM: true },
"$.FirstName": {
type: SchemaFieldTypes.TEXT,
...
0
votes
0
answers
53
views
RediSearch for matching file path regex pattern
How can I use RedisSearch to match a more complex wildcard pattern such as the following?
import uuid
from pydantic import BaseModel
from redis.asyncio import Redis
from redis.commands.search.field ...
0
votes
1
answer
73
views
How to use INKEYS to filter by the key/document_id?
I am trying to create a search query with redis and filter based on the id of the document. It seems we need to use the INKEYS command, but it doesn't work for the key ru203:book:details:9780002005883 ...
-1
votes
1
answer
184
views
redisearch vector search "ResponseError: Syntax error at offset 50 near DateTime"
I have a redisjson databse (with redisearch module) that contains a vector column and a timestamp column. I want query find the most similar items with a condition of time.
queries = [
"Some ...
-1
votes
1
answer
48
views
Is there a way to install Redisearch on EC2 Instance?
I have installed my Redis on my EC2 instance, now my goal is to create a RAG using this Redis instance. But when I try my "ft.create" command, it says
unknown command 'FT.CREATE', with args ...
0
votes
1
answer
77
views
How to prevent query injection in FT.SEARCH?
When using the redis-py client to perform a full-text search of a user-provided query_str (which is not of Redis query argument format, but the text itself to search for) only on the specific field ...
0
votes
1
answer
151
views
Are the results of FT.SEARCH ordered by their scores by default?
According to the documentation of FT.SEARCH, it has a WITHSCORES argument to get the internal scores of the documents, and a SCORER argument to specify a function for scoring the documents, such as ...
0
votes
1
answer
193
views
RediSearchAsyncCommands complains "java.lang.UnsupportedOperationException" when executing search command
I adapt spring-redisearch as search framework on redis, when I doing search, it throws following exception, the AbstractMap having problem is Collections$.EmptyMap
java.lang....
1
vote
1
answer
170
views
Retrieve all array elements if child array contains a certain element in JSON/RediSearch
I am using Redis with RedisJSON module and RediSearch, and I have some entries such as those below.
JSON.SET uuid_1 $ '{ "type": "game1", "players": ["player1", ...
0
votes
1
answer
421
views
Redisearch NOT operator negates full query
I'm using Redisearch and RedisJSON and I have this object type
{
"Id": "string",
"Locked": "string"
}
I have this index
FT.CREATE idx ON JSON PREFIX 1 &...
1
vote
1
answer
173
views
Redisearch-Py search Redis JSON schema for entries belonging to a specific tag
We are using Redisearch to insert structured JSON into Redis and searching by content to power autocomplete.
This is how our code looks like in Python:
rs = r.ft("a:a")
schema = (
TextField(...
0
votes
1
answer
166
views
Escaping on backslash itself
The escaping on the backslash itself behaves weird in Redis. The context is that I need to index a document but want to avoid the impact on the backslash (escape separator) if the document contains ...