Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(search): Support indexing array paths #2074

Merged
merged 5 commits into from
Oct 29, 2023

Conversation

dranikpg
Copy link
Contributor

Fixes one of the issues discussed in #1995 with arrays not being indexed

Signed-off-by: Vladislav Oleshko <[email protected]>
@dranikpg dranikpg marked this pull request as ready for review October 26, 2023 21:43
@dranikpg dranikpg requested review from chakaz and kostasrim October 26, 2023 21:44
src/core/search/base.h Outdated Show resolved Hide resolved
src/server/search/doc_accessors.cc Show resolved Hide resolved
StringList out;
for (auto element : path_res.array_range()) {
size_t start = buf_.size();
buf_ += element.as_string();
Copy link
Collaborator

Choose a reason for hiding this comment

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

This could invalidate all previous string_views in out, no?
Is there anything in line 124 that prevents growing again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No 😆 I forgot to use my brain

@dranikpg dranikpg requested a review from chakaz October 27, 2023 09:18
Signed-off-by: Vladislav Oleshko <[email protected]>
Signed-off-by: Vladislav Oleshko <[email protected]>
@chakaz
Copy link
Collaborator

chakaz commented Oct 29, 2023

Hey @dranikpg, I'm not sure if you're ready for another review?
(you didn't ask, and there seems to be a build break)

Signed-off-by: Vladislav Oleshko <[email protected]>
@dranikpg dranikpg merged commit 04cd2ff into dragonflydb:main Oct 29, 2023
7 checks passed
@dranikpg dranikpg deleted the search-arrays branch November 9, 2023 09:18
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.

2 participants