You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redis::executeRaw(['FT.SEARCH', $productIndexKey, '@product_name_text:(' . $productName . ')', 'RETURN', '2', 'category', 'product_name_text']) will give null
To Reproduce
Steps to reproduce the behavior:
Run command 'FT.SEARCH idx:product "@product_name_text:eos" RETURN 2 product_name_text category' will give expected result
Run command using Predis
Redis::executeRaw(['FT.SEARCH', $productIndexKey, '@product_name_text:(' . $productName . ')', 'RETURN', '2', 'FIELDS', 'category', 'product_name_text']) will give null
Expected behavior
Redis::executeRaw(['FT.SEARCH', $productIndexKey, '@product_name_text:(' . $productName . ')', 'RETURN', '2', 'FIELDS', 'category', 'product_name_text']) should give the same result as run the command 'FT.SEARCH idx:product "@product_name_text:eos" RETURN 2 product_name_text category'
Versions (please complete the following information):
Predis: [2.2]
PHP [8.1]
OS [Mac 14.2.1 ]
The text was updated successfully, but these errors were encountered:
Describe the bug
Turn the command
FT.SEARCH idx:product "@product_name_text:eos" RETURN 2 product_name_text category
into
Redis::executeRaw(['FT.SEARCH', $productIndexKey, '@product_name_text:(' . $productName . ')', 'RETURN', '2', 'category', 'product_name_text']) will give null
To Reproduce
Steps to reproduce the behavior:
Redis::executeRaw(['FT.SEARCH', $productIndexKey, '@product_name_text:(' . $productName . ')', 'RETURN', '2', 'FIELDS', 'category', 'product_name_text']) will give null
Expected behavior
Redis::executeRaw(['FT.SEARCH', $productIndexKey, '@product_name_text:(' . $productName . ')', 'RETURN', '2', 'FIELDS', 'category', 'product_name_text']) should give the same result as run the command 'FT.SEARCH idx:product "@product_name_text:eos" RETURN 2 product_name_text category'
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: