-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactor & test deployment configuration (e.g. RulesTxtDeploymentService) for Elasticsearch support #56
Comments
The major goal of this story is to:
Constraints:
SMUI's deployment options (plan):
The following refactoring steps are suggested in order to sustain maintainability for SMUI with respect to the deployment options:
Explicit deployment configuration:
Note: As time of planning this major change, SMUI refactorings (splitting frontend & backend implementation) take place. The following branches are relevant: |
I'm planning on removing the |
@epugh @pbartusch Please keep in mind that querqy/querqy#76 will be a breaking change: the rules.txt as no longer be deployed as such but the rules will be embedded into a JSON HTTP request (very similar to Querqy for ES). Also, the direct interaction with ZK or any direct interaction with the configset will be removed (and the collection reload as well). It is very likely, that we can test a release candidate in production as soon as January. I think we need this kind of 'beta version' this time given the scope of the change. Long story short: please do not invest any time into making the current deployment of rules.txt to Solr better - it will be replaced very soon. |
@renekrie , thanks for the hint.
that is not the plan. the focus of the concept described above lies on different deployment options in general. |
@pbartusch I was a bit worried because earlier you said:
I assume that zk-solr-cloud deployment will become outdated very soon. |
ah. got it. ok , it wasnt ment to the be the focus, but I understand the concern. Thanks , @renekrie . Then it seems better to make the |
@epugh , now I got your point as well. Regarding:
I suggest to add this deployment procedure (once its available in Solr/Querqy) to SMUI instead of Chorus as the I will not make this part of this issue/story (obviously ;-)), but we should develop it within the scope of SMUI and adjust Chorus accordingly. |
@renekrie , will there stay the Or will that be deprecated as well? |
This will be the same HTTP call like for SolrCloud |
Just a heads-up: I've just merged a PR for querqy/querqy#116 to querqy-core. This would give you the option to manage ES/Solr specifics via templates in the rules file. For example, a down boost on a field could look like this:
At the beginning of the file, you would have to prepend the search-engine-specific template:
If it helps, we could probably add docstring documentation to the templates à la:
This would probably enable SMUI to generate a form input in the UI from the template. At the most advanced end, we could let users create and manage their own templates in SMUI, including for more complex function queries. |
Do you think it might be useful to have the ability to define a raw query to a rule as well (i.e. everything after the '*')? E.g. as a specific option in the UI instead of choosing from suggested fields and putting a field for a value. The advantage would be to enable basically all use cases for rules through SMUI. It could enable Elastic Rules completely as a first step and circumvent the templates discussion and similar approaches. Update: It seems to be already possible through toggle.ui-concept.all-rules.with-solr-fields=false which renders the Term as is and does not throw any validation errors. So import, UI edit, export seems to be all working with Elastic Rules. |
@pbartusch |
See #82 which is specific to @pbartusch comment back in December 2020! |
Deployment possibilities for SMUI have grown rapidly. The configuration is hard to understand & corresponding code is hard to maintain - this includes:
especially.
Approach:
Step#1: document all deployment possibilities, that should be supported by SMUI (already take future Elasticsearch support , #43 , into account).
Step#2: derive a config schema (for application.conf).
Step#3: refactor the code (breaking change)
The text was updated successfully, but these errors were encountered: