Now, I want to add _timestamp to this document so I modify the mapping like
this :
curl -XPUT "$baseUrl/transactions/_mapping?pretty=true" -d '
{
"transactions" : {
"properties" : {
"author" : {
The question is : Is there a way to add _timestamp field on documents that
are already inserted ? In this case, in my tweet.
I saw the update in the API but I don't know which script should I use to
do. Do you have example to do a such thing ?
You cannot enable timestamp for the types that are already created. You
will have to delete the type and reindex all records into it again.
By the way, when you will create the new type, move the _mapping definition
to the same level as properties (not inside properties) so it looks like
this:
Now, I want to add _timestamp to this document so I modify the mapping
like this :
curl -XPUT "$baseUrl/transactions/_mapping?pretty=true" -d '
{
"transactions" : {
"properties" : {
"author" : {
The question is : Is there a way to add _timestamp field on documents
that are already inserted ? In this case, in my tweet.
I saw the update in the API but I don't know which script should I use to
do. Do you have example to do a such thing ?
You cannot enable timestamp for the types that are already created. You
will have to delete the type and reindex all records into it again.
By the way, when you will create the new type, move the _mapping
definition to the same level as properties (not inside properties) so it
looks like this:
Now, I want to add timestamp to this document so I modify the mapping
like this :
curl -XPUT "$baseUrl/transactions/**mapping?pretty=true" -d '
{
"transactions" : {
"properties" : {
"author" : {
The question is : Is there a way to add _timestamp field on documents
that are already inserted ? In this case, in my tweet.
I saw the update in the API but I don't know which script should I use to
do. Do you have example to do a such thing ?
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.