I am using Term Aggregations to get unique values for fields to show them as filters. however I am not getting all the results from ES.
code . GET /_search { "aggs" : { "genres" : { "terms" : { "field" : "TEST_CountryArray.keyword" } } } }
output.. China Andorra Germany Algeria Brazil Afghanistan Angola Australia Austria Cyprus
but I know that I have job with UK(in capital lettlers, not sure if thats an issue) in countries list which is inserted to ES later point of time.
query:
`GET jobs/_search
{
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
Thanks @dadoonet for the response. I am using NEST client from Dotnet to interact with ES and not much familiar with direct ES queries(I have posted the request output given by NEST). Can I share Nest code to get more details on this.
You can but I won't be able to help then.
Just open Kibana dev console and try to reproduce your problem without Nest and then we can see what is going wrong, how to fix, which you'll be able to translate to nest.
Yeah. That really helped @Mark_Harwood. I was using global size parameter(size to specify docs count) that returns documents not terms. I just used size parameter for term it worked perfectly.
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.