Skip to content

[2.8] MOD-7944: Support multi-byte char terms (#5391)#5647

Merged
nafraf merged 2 commits into2.8from
nafraf_backport-5391-to-2.8
Feb 18, 2025
Merged

[2.8] MOD-7944: Support multi-byte char terms (#5391)#5647
nafraf merged 2 commits into2.8from
nafraf_backport-5391-to-2.8

Conversation

@nafraf
Copy link
Collaborator

@nafraf nafraf commented Feb 12, 2025

Description

Manual backport of #5391 to 2.8.
(cherry picked from commit 43701d8)

Changes:

  • Since Version 2.8 limits the normalization buffer to 128 bytes, #define MAX_NORMALIZE_SIZE 128, expected results in testLongTerms() were modified to respect that limitation.

  • For tests with indexes with LANGUAGE different from ENGLISH, the LANGUAGE was added to FT.SEARCH commands because this version does not take the language from index specification

  • In testMultibyteTag, for tests using DIALECT 4, the number of results was changed to ANY, because in this version a wrong count is returned.

  • In test_cpp_llapi.cpp, RediSearch_CreateTagLexRangeNode() receives only 5 arguments, in this version const char* fieldName is not part of the function signature

@nafraf nafraf marked this pull request as ready for review February 12, 2025 23:02
@codecov
Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 99.29078% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.90%. Comparing base (6528512) to head (786d00e).
Report is 3 commits behind head on 2.8.

Files with missing lines Patch % Lines
src/query_param.c 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.8    #5647      +/-   ##
==========================================
+ Coverage   85.85%   85.90%   +0.04%     
==========================================
  Files         200      200              
  Lines       34314    34399      +85     
==========================================
+ Hits        29459    29549      +90     
+ Misses       4855     4850       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nafraf nafraf requested review from oshadmi and raz-mon February 13, 2025 03:23
raz-mon
raz-mon previously approved these changes Feb 17, 2025
@oshadmi oshadmi added this pull request to the merge queue Feb 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 18, 2025
@nafraf nafraf added this pull request to the merge queue Feb 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 18, 2025
@nafraf nafraf added this pull request to the merge queue Feb 18, 2025
Merged via the queue into 2.8 with commit 3fb2635 Feb 18, 2025
10 checks passed
@nafraf nafraf deleted the nafraf_backport-5391-to-2.8 branch February 18, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants