Skip to content

Text field in the index on JSON does not return values correctly #1272

@adamzrk

Description

@adamzrk

I am using index on json like that:
SCHEMA $.relations[*].text as text TEXT

I have values like:
"name": "test",
"relations": [
{
"type": "3344d28-3af7-4bb4-9964-bc2b76b93d64",
"text": "emailemailcom4321e891-162a-456b-abf2-fd9b864df96d"
},
{
"type": "9876d28-3af7-4bb4-9964-bc2b76b93d64",
"text": "ABCD5d13e891-162a-456b-abf2-fd9b864df96d"
}
}

When I am searching like:
FT.SEARCH json:search '@text:"emailemailcom4321e891-162a-456b-abf2-fd9b864df96d"' DIALECT 2
the document is found, which is fine.
But when I try to search like this:
FT.SEARCH json:search '@text:"email*4321e891-162a-456b-abf2-fd9b864df96d"' DIALECT 2
no result is found.
Seems like searching on part of the content inside TEXT field does not work.

Modules

module:name=timeseries,ver=11202,api=1,filters=0,usedby=[],using=[],options=[]
module:name=redisgears_2,ver=20020,api=1,filters=0,usedby=[],using=[],options=[]
module:name=search,ver=21005,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]
module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]
module:name=bf,ver=20802,api=1,filters=0,usedby=[],using=[],options=[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions