-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Help on setting Type for methods #39
Comments
If
If it really means find ANYTHING where
this will do a deletequery over
You can limit this by explicitly specifying the indices and types
or by being explicit on the types only:
or explicit indexes and all types which i'll omit because i'm sure you got the gist 2 examples ago :) I quite like github issues over google groups personally since it feels like its more out in the open but thanks for offering! |
Also if you have a generic delete but you would like different default indexes for certain types you can do the following:
That way you dont have to explicitly pass the exceptions into a different overload |
This is WONDERFUL. Thanks, man! I really appreciate the feedback. I'm just getting to know the NEST fluid interface a bit better. |
Hello!
I have a situation where I'm trying to figure out a way to, for example, call some methods but setting the Type dynamically or in some similar way.
I have DeleteByQuery method
client.DeleteByQuery(q => q.Term(f => f.TY, "test"));
but I will also need to do
client.DeleteByQuery(q => q.Term(f => f.TY, "test"));
This is inside a method like:
I'm trying to figure out a way that I could pass a type or generic into the method that would call this function so that I wouldn't have two DeleteByQuery methods. This would help keep my code more DRY but I'm having a difficult time conceptualizing how I would do this.
Thanks for any help!!! (I realize this isn'ts really an "issue" - maybe I could start and help support a google group for NEST?)
The text was updated successfully, but these errors were encountered: