Skip to content
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

Dynamic sourceField, destField in ES query #32

Open
curran opened this issue Aug 3, 2016 · 0 comments
Open

Dynamic sourceField, destField in ES query #32

curran opened this issue Aug 3, 2016 · 0 comments

Comments

@curran
Copy link
Member

curran commented Aug 3, 2016

Currently, the custom middleware that queries ES when clicking on chord ribbons has hard-coded values for the source and destination fields.

          var options = {
            index: index,
            body: {
              query: {
                bool: {
                  must: [
                    {
                      "term": {
                        "nuage_metadata.sourcepolicygroups": d.source
                      }
                    },
                    {
                      "term": {
                        "nuage_metadata.destinationpolicygroups": d.destination
                      }
                    },
...

The keys in the above query should be made dynamic, according to what is selected in the client-side Kibana Schema configuration.

@curran curran changed the title Include dynamic sourceField, destField in middleware Dynamic sourceField, destField in ES query Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant