You can't remove the aggregate for "" without also removing the result, as the way to do this would be to use a filter to remove the values and facets you don't need.
Another option would be just to discard the "" value you receive on the facets. Is this an option?
Hi Carlos Thanks for your advice,
unfortunately, there where lot of result that is not "" and also we still need "" result,
We just need to remove "" value in aggregate..
So confused for this case
Hi Carlos,
i'am using go as our backend.
My main use case is just i have to discard value "" only in aggregates, without losing value "" in result..
sorry. I think i'am still little bit confused about it
Carlos is suggesting that once you have received the response from App Search API, you transform the facet values to exclude the empty value entry before returning it back to the client.
Just to double check, are you using App search API or the Elasticsearch APIs?
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.