Skip to content

Instantly share code, notes, and snippets.

@Vineeth-Mohan
Created May 6, 2013 14:32
Show Gist options
  • Save Vineeth-Mohan/5525521 to your computer and use it in GitHub Desktop.
Save Vineeth-Mohan/5525521 to your computer and use it in GitHub Desktop.
{
"events" : {
"news" : {
"dynamic_templates" : [ {
"entity_template" : {
"mapping" : {
"type" : "String",
"Analyzer" : "flat"
},
"path_match" : "Events.Entities.*.entity"
}
} ],
"_all" : {
"enabled" : false
},
"properties" : {
"Events" : {
"properties" : {
"Entities" : {
"properties" : {
"Action" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"AnalystAction" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"AnalystBroker" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"AnalystCompany" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"AnalystEstimate" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"AnalystLevel" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"Broker" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
},
"instance" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
}
}
},
"Commodities" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"CommodityCompany" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
},
"instance" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
}
}
},
"Company" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
},
"instance" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
}
}
},
"CorporateAction" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"Country" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
},
"instance" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
}
}
},
"Currency" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
},
"instance" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
}
}
},
"Date" : {
"properties" : {
"FromDate" : {
"type" : "date",
"format" : "dd-MM-yyyy HH:mm:ss"
},
"ToDate" : {
"type" : "date",
"format" : "dd-MM-yyyy HH:mm:ss"
},
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"Estimate" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"FromLevel" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"HedgeFirm" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
},
"instance" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
}
}
},
"HedgeManager" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"Index" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
},
"instance" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
}
}
},
"JobTitles" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"Level" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"Money" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"Others" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"Percent" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"Person" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
},
"instance" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
}
}
},
"Region" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
},
"instance" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
}
}
},
"ToLevel" : {
"dynamic" : "true",
"properties" : {
"entity" : {
"type" : "string",
"analyzer" : "flat"
}
}
},
"entity" : {
"type" : "string"
}
}
},
"Event" : {
"type" : "string",
"analyzer" : "content"
},
"Sources" : {
"dynamic" : "true",
"properties" : {
"link" : {
"type" : "string"
},
"parent" : {
"type" : "string"
},
"parentLink" : {
"type" : "string"
},
"source" : {
"type" : "string"
},
"timeStamp" : {
"type" : "string"
},
"title" : {
"type" : "string"
}
}
},
"occurences" : {
"type" : "long"
}
}
},
"Feedback" : {
"properties" : {
"Comment" : {
"type" : "string"
},
"FeedbackDate" : {
"type" : "date",
"format" : "dd-MM-yyyy HH:mm:ss"
},
"MarkedAs" : {
"type" : "string"
},
"markedAs" : {
"type" : "string"
}
}
},
"Occurences" : {
"type" : "long"
},
"TimeStamp" : {
"type" : "date",
"format" : "dd-MM-yyyy HH:mm:ss"
},
"Type" : {
"type" : "string",
"analyzer" : "flat"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment