Hi,
Is there a way to get statistical for field with different group? For
instance, I have id and url in the document.
{
"ID" : "aa",
"url" : "http://51.com/forum-72-1.html",
}
then I want to count url for every ID. such as aa has 2 urls and bb has 3
urls.
How could I get the statistical from ES?
may be it is just on my side but I really do not understand what you are
after.
Do you want to get total count of aa and bb? Or do you can to get count of
distinct URL values for aa and bb?
Hi,
Is there a way to get statistical for field with different group? For
instance, I have id and url in the document.
{
"ID" : "aa",
"url" : "http://51.com/forum-72-1.html",
}
then I want to count url for every ID. such as aa has 2 urls and bb has 3
urls.
How could I get the statistical from ES?
may be it is just on my side but I really do not understand what you are
after.
Do you want to get total count of aa and bb? Or do you can to get count of
distinct URL values for aa and bb?
Regards,
Lukas
On Fri, Jul 5, 2013 at 1:02 PM, <liji...@gmail.com <javascript:>> wrote:
Hi,
Is there a way to get statistical for field with different group? For
instance, I have id and url in the document.
{
"ID" : "aa",
"url" : "http://51.com/forum-72-1.html",
}
then I want to count url for every ID. such as aa has 2 urls and bb has 3
urls.
How could I get the statistical from ES?
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
usually you can use a simple terms facet for this, but I suppose you are
having a different document structure. Maybe you can provide a gist, which
allows every reader to see, what kind of data you are actually trying to
aggregate, so it is easier to replay your problem
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.