-
Notifications
You must be signed in to change notification settings - Fork 118
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 for other search types #42
Comments
You can volleyball a PR but I'm hesitant to recommend doing that as some people find review on something they think should be done exhausting. I don't mind using it as a method of directing design as it can be easier to just "show" what you mean than to try to describe it in words for some people. What you propose sounds like it'll be fine. :) It does look like a low-impact way of doing this would be another field in I'm very glad the library has helped. I know I am definitely happier not having to create "templated" stringly queries that I interpolate variables into anymore. |
@bitemyapp In the meanwhile, you can look over the more trivial work done: Thanks |
@bermanjosh The guideline/default I've operated on is a lazy spine of strict bytestring chunks or in this case, pages. I can't say precisely what this should look like or how it should work in order to be amenable to integration with streaming libraries which is why I referenced Snoyman's post on this. I'll take a look at your commit later today. |
@bitemyapp |
@bermanjosh I'd rather review the code via PR anyway - go ahead. |
@bitemyapp Hi - have you have a chance to review the PR? Thanks. |
@bermanjosh oh sorry, I was waiting for you to fix the merge conflict. I try to avoid reviewing stuff waiting for a cleanup. I'll start looking now and do a final scan when you fix the conflict. |
@bermanjosh took a look, left two comments. Resolve the conflict and I'll try to get this wrapped up. |
@bitemyapp sorry about the delay, merge is clear |
@bermanjosh bouncing the CI tests. |
@bermanjosh bounced, tests still broken. |
@bitemyapp sorry about that, taken care of |
@bitemyapp |
@bermanjosh just catching up to #63 having been merged? Need anything else? |
@bitemyapp Yeah, I was just looking around for something else and realized I never closed it. (Now you see why I'm not the right guy for PIC status... :-) ) |
Firstly - awesome work, thanks. We're starting to use your package in code moving towards production, and it's made a lot of my SQL -> Elastic migration much, much easier.
I was wondering if we'd be able to open up other potential search-types; I specifically am looking for scan. I'm happy to do do a PR; if that's ok with you, do you have an approach you'd prefer?
My first (very rough) thought is to add a new ADT as a field in the
Search
type, which would be used to trigger some new logic indispatchSearch
to add some query parameters. This way it wouldn't be a breaking change for any of the search functions, or any smart constructors (once I updated them, obviously). Since you have a manual toJSON, it can be safely ignored for the body.Thoughts?
Thanks!
The text was updated successfully, but these errors were encountered: