Skip to content
New issue

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

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

Already on GitHub? # to your account

Ability to specify index name(s) for partitioning #638

Closed
jeremyhaile opened this issue Mar 15, 2018 · 4 comments
Closed

Ability to specify index name(s) for partitioning #638

jeremyhaile opened this issue Mar 15, 2018 · 4 comments

Comments

@jeremyhaile
Copy link

We are trying to do date based index partitioning (e.g. log-2018-01, log-2018-02)

When doing time based searches, we could then specify to only search the indexes that we know match the time range given but I can't find any way to specify this with chewy.

I'm wanting to do something like query = LogIndex.index('log-2018-01,log2018-02').filter(...)

Is this supported now, or if not what is the best way to accomplish this?

@pyromaniac
Copy link
Contributor

Well, this is actually the first feature we need for ES6 and I'm thinking about it for a long time already but, unfortunately, it is not implemented yet. However, everything is actually ready for it in the DSL, the implementation will be simple if you want to try.

@jeremyhaile
Copy link
Author

@pyromaniac Happy to take a stab at it. Since I'm just figuring out the code base, is there any files in the code base you can recommend I look at that might be similar to what I will need to add? Appreciate it!

@pyromaniac
Copy link
Contributor

pyromaniac commented Mar 15, 2018

https://github.com/toptal/chewy/blob/master/lib/chewy/search/request.rb It already supports multiple indexes on init, we need just an ability to append them.

@rabotyaga
Copy link
Contributor

Handled by #657

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants