Skip to content
Snippets Groups Projects
Commit 8e449946 authored by evana's avatar evana
Browse files

Upload New File

parent f479a026
Branches
No related tags found
1 merge request!10Patch 2
function (doc) {
var editDate = new Date(doc.created_at.split(" ")[0]);
var month = editDate.getMonth()+1;
var year = editDate.getFullYear();
var date = editDate.getDate();
if(year==2020){
if(date<=10){
stage='F'
}
else if(date<=20){
stage='M'
}
else{
stage='L'
}
if(doc.sentiment[0]<0)
emit([doc.state,'negative',month,stage],1)
else if(doc.sentiment[0]>0)
emit([doc.state,'positive',month,stage],1)
else
emit([doc.state,'neutral',month,stage],1)
}}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment