-
Notifications
You must be signed in to change notification settings - Fork 189
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
Multiple indexes for one Document #902
Comments
There is no way to do that with annotations but you can do that with a YAML config. If you won't find how will write an example later. |
I am not sure if you meant I could already do that or that it can be made to work with YAML config? As I have seen in BTW: It would also be possible with annotations if we introduce a new one:
When using this annotation we could automatically use the |
@saimaz Can you elaborate? I am still not sure what's the case here. |
@saimaz I tried to figure it out myself again but I can't seem to find a solution since every |
@saimaz I just spent some time creating an alternative to the current config. I had an idea how we wouldn't loose BC:
When using the An already working alternative would be if I created an abstract class with all the contents of What do you think? I am sill interested in creating a PR for such a change since. |
As I see it there is no chance to create more than one index using the same document type in version 6.0. Until now I have used my "Package" document in multiple indexes like "package_de_chf" or "package_fr_chf" (country/currency pairs). This was a performance gain since I never needed these entries to be mixed.
I've tried it like this. But obviously this won't work since only one
IndexService
is being generated with the name being the same as the classname.Is is possible we could use the alias as service names? Maybe add an optional parameter
alias_as_service_name=true
for the annotation?I am willing to create a PR if there is a chance it will get merged ;)
The text was updated successfully, but these errors were encountered: