I have a date field called "start_date" with the following format:
August 2007
July 2003
January 1999
Would the mapping for this field be:
"completion_date" : {
"type" : "date",
"format" : "yyyy M"
}
Thanks!
Allen
I have a date field called "start_date" with the following format:
August 2007
July 2003
January 1999
Would the mapping for this field be:
"completion_date" : {
"type" : "date",
"format" : "yyyy M"
}
Thanks!
Allen
Sorry, I meant to switch the month and year:
"completion_date" : {
"type" : "date",
"format" : "M yyyy"
}
On Thursday, May 17, 2012 1:49:38 PM UTC-7, Allen Liu wrote:
I have a date field called "start_date" with the following format:
August 2007
July 2003
January 1999Would the mapping for this field be:
"completion_date" : {
"type" : "date",
"format" : "yyyy M"
}Thanks!
Allen
Ok..I figured it out:
"completion_date" : {
"type" : "date",
"format" : "MMM yyyy"
}
Supposedly 3 or more M's will bring it to text mode.
On Thursday, May 17, 2012 1:50:18 PM UTC-7, Allen Liu wrote:
Sorry, I meant to switch the month and year:
"completion_date" : {
"type" : "date",
"format" : "M yyyy"
}On Thursday, May 17, 2012 1:49:38 PM UTC-7, Allen Liu wrote:
I have a date field called "start_date" with the following format:
August 2007
July 2003
January 1999Would the mapping for this field be:
"completion_date" : {
"type" : "date",
"format" : "yyyy M"
}Thanks!
Allen
© 2020. All Rights Reserved - Elasticsearch
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.