I have one index named master_db, in that i have fetched one column from db named content_type.
I am using aggs to sort values of content _type as below:
In above result, we can see reference and page are two different words but it should be one single word with space like reference page. similar to this there are other cases also in the above result.
I want this to print as 1 word and show count as well for the same.
In index also this value is stored as a one word only.
How i can achieve this using aggs sort?
Do not aggregate on fields that are searchable. Only aggregate on keyword fields, which will not show a two term value in two different buckets, but treat it as one.
under content type, I am getting values for content sub_type.
I do not want my output like this.
I want first content type values should be displayed and after that all the values for content sub_type.
Thanks for your reply!!!
I have created two separate aggregations, one for each field.
Now i want to search in that using match all. I want to use query in aggs.
My query should match in all the specified fields and depending on that aggregation count should be displayed.
How i can achieve that?
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.