Hello,
i'd like to get, for each document in the response to a search, the
type/mapping identifier corresponding to this particular document.
For exemple, for the following search:
$ curl -XGET 'http://localhost:9200/twitter/tweet,user/_search?
q=user:kimchy'
I'd like to have in each document of the response a field with a value
of either "user" of "tweet".
Just add _type in the list of fields you want to retrieve.
Jérémie
On Thu, Nov 24, 2011 at 3:55 PM, Virgile Devaux vdevaux@gmail.com wrote:
Hello,
i'd like to get, for each document in the response to a search, the
type/mapping identifier corresponding to this particular document.
For exemple, for the following search:
$ curl -XGET 'http://localhost:9200/twitter/tweet,user/_search?
q=user:kimchy'
I'd like to have in each document of the response a field with a value
of either "user" of "tweet".
Forget about it, I was using the output of a processor that removes
those information from the original document returned by
Elasticsearch, that, of course, returns it.
Sorry for the time lost.
Hello,
i'd like to get, for each document in the response to a search, the
type/mapping identifier corresponding to this particular document.
For exemple, for the following search:
$ curl -XGET 'http://localhost:9200/twitter/tweet,user/_search?
q=user:kimchy'
I'd like to have in each document of the response a field with a value
of either "user" of "tweet".
Hello,
i'd like to get, for each document in the response to a search, the
type/mapping identifier corresponding to this particular document.
For exemple, for the following search:
$ curl -XGET 'http://localhost:9200/twitter/tweet,user/_search?
q=user:kimchy'
I'd like to have in each document of the response a field with a value
of either "user" of "tweet".
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.