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

Support DROPINDEX command with DD option #170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sazzad16
Copy link
Collaborator

@sazzad16 sazzad16 commented Oct 3, 2021

Resolves #169

@sazzad16 sazzad16 requested a review from gkorland October 3, 2021 06:47
@sazzad16 sazzad16 linked an issue Oct 3, 2021 that may be closed by this pull request
@@ -324,6 +324,8 @@
*/
boolean dropIndex(boolean missingOk);

boolean dropIndexDD();
Copy link
Contributor

Choose a reason for hiding this comment

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

@sazzad16 should you also add "boolean missingOk"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@gkorland IMHO, if this is a necessity, it should be supported from RediSearch. If too much convenience is given to users, there is a way greater chance of it being misused.

Choose a reason for hiding this comment

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

why to introduce new method?
why not to add overloaded method
boolean dropIndex(boolean missingOk, boolean keepDocuments)

dropIndexDD name is confusing

and client still use deprecated FT.DROP -> which use different parameter

assertUnknownIndex(jde);
}
try {
search.getDocuments("doc2", "doc3");
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add another test that also verify docs were deleted with EXISTS or HGET

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.

Support DROPINDEX command with DD option
3 participants