With kibana devtools, I am trying to create a query to get unique values from multiple fields into a single bucket. I am using cppy_to to create a new field and plan to find the unique values with aggregation. I need to find a way to put the data from the existing fields into the newly created field.
Current Code:
Hi tylersmalley,
Thanks for your suggestions.
I am unable to understand what you actually mean by "foo" and" bar". More clear explanation of what I am trying: I have an index called abc which has fields wlan_da and wlan_sa. Both this fields have some values. I want to aggregate over this values together in a single bucket to find the unique values in wlan_da and wlan_sa field. So in POST indexme/my_type, I want to insert values from wlan_sa (index=abc) into wlan_sa (index=indexme) and values from wlan_da (index=abc) into wlan_da (index=indexme) so that later by aggregating on full_names, I get unique values from both the fields together in a single bucket.
"foo" and "bar" are just test values. The API call creates a document with those values assigned to wlan_da and wlan_sa. Then, using your search they are aggregated over full_names.
Hi tylersmalley,
It did helped me. I want to replace test values "foo" and "bar" with existing values in the wlan_da and wlan_sa type of some other index (say XYZ). So I am trying to pull values from the wlan_da and wlan_sa field of some other index ( XYZ) and trying to put them in the full_namesas. So How to get this values in place of "foo" and "bar" ??
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.