Right. I misunderstood your question sorry.
I thought you were talking about facets and not about mapping.
De : elasticsearch@googlegroups.com [mailto:elasticsearch@googlegroups.com]
De la part de Dmitriy
Envoyé : mercredi 15 août 2012 14:53
À : elasticsearch@googlegroups.com
Objet : Re: List of available facet names
David,
Thanks for you reply.
It seems I was looking for thing like
http://www.elasticsearch.org/guide/reference/api/admin-indices-get-mapping.h
tml
Dmitriy
On Tuesday, August 14, 2012 12:09:39 PM UTC+3, David Pilato wrote:
Look at the result. You will see a facets array with all facets in it.
Let me add that you have to create facets when you query. So you know before
sending the request, all the facet names.
See this:
http://www.elasticsearch.org/blog/2011/05/13/data-visualization-with-elastic
search-and-protovis.html
David
--
Le 14 août 2012 à 10:56, Dmitriy <dmitriy.m...@teamdev.com <javascript:> > a
écrit :
Are there any thoughts? Is it possible? Is it reasonable?
Thanks.
On Monday, August 13, 2012 2:08:54 PM UTC+3, Dmitriy wrote:
Hi All,
Sorry for my noob question, but I couldn't find an answer in documentation
and threads.
I'd like to get list of facet names available for some query result set.
Let's say I have the following documents as the result of some query:
{
"title" : "One",
"tags" : ["foo"],
"quantity" : 1
}
{
"title" : "Two",
"tags" : ["foo", "bar"],
"quantity" : 2
}
{
"title" : "Three",
"tags" : ["foo", "bar", "baz"]
}
Consider the situation when I don't know exact list of document fields.
What is the way to get available facet names: "tags", "quantity"?
--
--
--