-
Notifications
You must be signed in to change notification settings - Fork 802
Questions about the create_index! method #919
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
Comments
I have a question that might follow on from this one. Should we expect indexing ClassMethods to continue to work on a Repository class, as class methods? They seem to work just fine as instance methods because they are Some ContextNoticed this in the DSL module:
When calling
When i checked the Repository ancestors noticed:
It seems like the DSL module, when included, will override the Indexing ClassMethods set on the Respository class with it's own stubbed out and unimplemented class methods via: I think the fix could be to switch those two lines around in the A workaround might be to just extend with the indexing class methods explicitly, ie where i include DSL, but actually haven't gotten this working yet 😅
UPDATEJust found the test i was looking for: here Taking a look into this PR and related PRs to better understand the WHY. |
Thank you. |
When you execute the instance method of the repository class that includes the "Elasticsearch :: Persistence :: Repository" module. create_index! (Index: 'test_index'), nil is returned. Which is this a bug or my bad use?
The text was updated successfully, but these errors were encountered: