Skip to content

MOD-7634: Fix NOSTEM#4956

Merged
nafraf merged 19 commits intomasterfrom
nafraf_fix-nostem
Dec 10, 2024
Merged

MOD-7634: Fix NOSTEM#4956
nafraf merged 19 commits intomasterfrom
nafraf_fix-nostem

Conversation

@nafraf
Copy link
Collaborator

@nafraf nafraf commented Aug 23, 2024

Describe the changes in the pull request

  1. Current state:
    NOSTEM field option is used for tokenization, but it is not used during the query.

    Example of behavior before the change
    127.0.0.1:6379> FT.CREATE idx schema body text name text nostem
    OK
    127.0.0.1:6379> FT.EXPLAINCLI idx '@body:(cherry)'
    1) @body:UNION {
    2)   @body:cherry
    3)   @body:+cherri(expanded)
    4)   @body:cherri(expanded)
    5) }
    6) 
    127.0.0.1:6379> FT.EXPLAINCLI idx '@name:(cherry)'
    1) @name:UNION {
    2)   @name:cherry
    3)   @name:+cherri(expanded)
    4)   @name:cherri(expanded)
    5) }
  2. What is the change
    Don't expand terms if the field contains the option NOSTEM

  3. Adding the outcome (changed state)

    127.0.0.1:6380> FT.CREATE idx schema body text name text nostem
    OK
    127.0.0.1:6380> FT.EXPLAINCLI idx '@body:(cherry)'
    1) @body:UNION {
    2)   @body:cherry
    3)   @body:+cherri(expanded)
    4)   @body:cherri(expanded)
    5) }
    6) 
    127.0.0.1:6380> FT.EXPLAINCLI idx '@name:(cherry)'
    1) @name:cherry
    2)

Which issues this PR fixes

  1. MOD-7634

Main objects this PR modified

  1. ...
  2. ...

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@nafraf nafraf changed the title Fix NOSTEM MOD-7634: Fix NOSTEM Aug 25, 2024
@nafraf nafraf marked this pull request as ready for review August 25, 2024 07:04
@codecov
Copy link

codecov bot commented Aug 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.73%. Comparing base (805d3d8) to head (97d791a).
Report is 18 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4956      +/-   ##
==========================================
- Coverage   86.73%   86.73%   -0.01%     
==========================================
  Files         193      193              
  Lines       34704    34741      +37     
==========================================
+ Hits        30101    30133      +32     
- Misses       4603     4608       +5     

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

@nafraf nafraf requested a review from oshadmi August 25, 2024 17:42
kei-nan and others added 4 commits August 28, 2024 15:15
* * initial commit

* * Use RediSearch branch mirroring fork

* * Code Review - Round #1
…4972)

change the number of maxPending requests when changing the number of connections
* * initial commit

* * code review
* remove compilation flag (wip)

* finish removing compilation flag

* remove from tests
@github-actions
Copy link

This pull request is stale because it has been open for 60 days with no activity.

@github-actions github-actions bot added the stale label Nov 12, 2024
@nafraf nafraf removed the stale label Nov 25, 2024
@nafraf nafraf requested a review from oshadmi November 25, 2024 22:53
oshadmi
oshadmi previously approved these changes Dec 10, 2024
Copy link
Collaborator

@oshadmi oshadmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍🏼

Co-authored-by: Omer Shadmi <[email protected]>
Co-authored-by: Omer Shadmi <[email protected]>
@nafraf nafraf requested a review from oshadmi December 10, 2024 15:08
@nafraf nafraf added this pull request to the merge queue Dec 10, 2024
Merged via the queue into master with commit 54af5c8 Dec 10, 2024
@nafraf nafraf deleted the nafraf_fix-nostem branch December 10, 2024 15:45
@oshadmi
Copy link
Collaborator

oshadmi commented Dec 22, 2024

/backport

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 2.8, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.8
git worktree add -d .worktree/backport-4956-to-2.8 origin/2.8
cd .worktree/backport-4956-to-2.8
git switch --create backport-4956-to-2.8
git cherry-pick -x 54af5c8a1054f78093d863f601f0ce68388ce6df

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 2.6, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.6
git worktree add -d .worktree/backport-4956-to-2.6 origin/2.6
cd .worktree/backport-4956-to-2.6
git switch --create backport-4956-to-2.6
git cherry-pick -x 54af5c8a1054f78093d863f601f0ce68388ce6df

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 22, 2024
* Fix NOSTEM

* Fix testNoStem

* Check spec is not NULL

* Add comments to testNoStem

* MOD-7596: Add mirroring support (#4937)

* * initial commit

* * Use RediSearch branch mirroring fork

* * Code Review - Round #1

* Change maxPending requests when changing the number of connections (#4972)

change the number of maxPending requests when changing the number of connections

* MOD-7695: Decide Ubuntu Runner Using Variable (#4975)

* * initial commit

* * code review

* Enable MT in comunity eddition by default - [MOD-7160] (#4974)

* remove compilation flag (wip)

* finish removing compilation flag

* remove from tests

* MOD-7706 fix ramp-packer version (#4980)

ramp-packer 2.5.10

* Fix expansion for modifier lists

* Delete event-mirror.yml it is not part of this PR

* Simplify bit masking

* Update src/query.c

Co-authored-by: Omer Shadmi <[email protected]>

* Update src/ext/default.c

Co-authored-by: Omer Shadmi <[email protected]>

---------

Co-authored-by: kei-nan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: Omer Shadmi <[email protected]>
(cherry picked from commit 54af5c8)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.10:

@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 8.0:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 22, 2024
* Fix NOSTEM

* Fix testNoStem

* Check spec is not NULL

* Add comments to testNoStem

* MOD-7596: Add mirroring support (#4937)

* * initial commit

* * Use RediSearch branch mirroring fork

* * Code Review - Round #1

* Change maxPending requests when changing the number of connections (#4972)

change the number of maxPending requests when changing the number of connections

* MOD-7695: Decide Ubuntu Runner Using Variable (#4975)

* * initial commit

* * code review

* Enable MT in comunity eddition by default - [MOD-7160] (#4974)

* remove compilation flag (wip)

* finish removing compilation flag

* remove from tests

* MOD-7706 fix ramp-packer version (#4980)

ramp-packer 2.5.10

* Fix expansion for modifier lists

* Delete event-mirror.yml it is not part of this PR

* Simplify bit masking

* Update src/query.c

Co-authored-by: Omer Shadmi <[email protected]>

* Update src/ext/default.c

Co-authored-by: Omer Shadmi <[email protected]>

---------

Co-authored-by: kei-nan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: Omer Shadmi <[email protected]>
(cherry picked from commit 54af5c8)
github-merge-queue bot pushed a commit that referenced this pull request Dec 23, 2024
MOD-7634: Fix NOSTEM (#4956)

* Fix NOSTEM

* Fix testNoStem

* Check spec is not NULL

* Add comments to testNoStem

* MOD-7596: Add mirroring support (#4937)

* * initial commit

* * Use RediSearch branch mirroring fork

* * Code Review - Round #1

* Change maxPending requests when changing the number of connections (#4972)

change the number of maxPending requests when changing the number of connections

* MOD-7695: Decide Ubuntu Runner Using Variable (#4975)

* * initial commit

* * code review

* Enable MT in comunity eddition by default - [MOD-7160] (#4974)

* remove compilation flag (wip)

* finish removing compilation flag

* remove from tests

* MOD-7706 fix ramp-packer version (#4980)

ramp-packer 2.5.10

* Fix expansion for modifier lists

* Delete event-mirror.yml it is not part of this PR

* Simplify bit masking

* Update src/query.c

Co-authored-by: Omer Shadmi <[email protected]>

* Update src/ext/default.c

Co-authored-by: Omer Shadmi <[email protected]>

---------

Co-authored-by: kei-nan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: Omer Shadmi <[email protected]>
(cherry picked from commit 54af5c8)

Co-authored-by: nafraf <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 23, 2024
MOD-7634: Fix NOSTEM (#4956)

* Fix NOSTEM

* Fix testNoStem

* Check spec is not NULL

* Add comments to testNoStem

* MOD-7596: Add mirroring support (#4937)

* * initial commit

* * Use RediSearch branch mirroring fork

* * Code Review - Round #1

* Change maxPending requests when changing the number of connections (#4972)

change the number of maxPending requests when changing the number of connections

* MOD-7695: Decide Ubuntu Runner Using Variable (#4975)

* * initial commit

* * code review

* Enable MT in comunity eddition by default - [MOD-7160] (#4974)

* remove compilation flag (wip)

* finish removing compilation flag

* remove from tests

* MOD-7706 fix ramp-packer version (#4980)

ramp-packer 2.5.10

* Fix expansion for modifier lists

* Delete event-mirror.yml it is not part of this PR

* Simplify bit masking

* Update src/query.c

Co-authored-by: Omer Shadmi <[email protected]>

* Update src/ext/default.c

Co-authored-by: Omer Shadmi <[email protected]>

---------

Co-authored-by: kei-nan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: Omer Shadmi <[email protected]>
(cherry picked from commit 54af5c8)

Co-authored-by: nafraf <[email protected]>
nafraf added a commit that referenced this pull request Jan 8, 2025
(cherry picked from commit 54af5c8)
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2025
* MOD-7634: Fix NOSTEM (#4956)

(cherry picked from commit 54af5c8)

* Backport IndexSpec_GetFieldByBit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants