Statistical for field with different group

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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi,

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, lijionly@gmail.com 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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi,
I want to get total count of aa and bb.

在 2013年7月6日星期六UTC+8下午1时26分02秒,Lukáš Vlček写道:

Hi,

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.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

any suggestions?

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

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

--Alex

On Thu, Jul 11, 2013 at 4:16 AM, lijionly@gmail.com wrote:

any suggestions?

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.