Skip to content

Instantly share code, notes, and snippets.

View soumyamrs's full-sized avatar

Soumya soumyamrs

  • www.algotree.com
  • India
View GitHub Profile
{
_index: reloaded
_type: news
_id: XKMRV2CORPSZkMqTZIg5Gg
_score: 0.96167827
_source: {
relatedSources: null
fetchTimeStamp: 12-08-2012 21:59:42
entityCount: 9
{
took: 3
timed_out: false
_shards: {
total: 2
successful: 2
failed: 0
}
hits: {
{
"from": "0",
"size": "100",
"query": {
"bool": {
"must": [
{
"bool": {
"must": [
{
{
_index: bloombergtest
_type: bloomberg
_id: sDer5TRkQ3S_hABgi9E99g
_score: 0.5897866
_source: {
sourceName: BLOOMBERG News (BN)
NameInfo: {
NameInfo: [
# Define the root logger with appender file
log4j.rootLogger =DEBUG, S, R, FILE
# Define the file appender
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File= /home/soumya/testLogs/log.out
# Define the layout for file appender
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.conversionPattern=%m%n
Categories: {
Types: {
Events: [
{
.... event1
}
{
.......... event2
}
@soumyamrs
soumyamrs / ElasticsearchIndex
Created November 5, 2012 07:37
index document
{
_index: algotree
_type: news
_id: sgFH6KJ0Q2GOVlHJx_cakA
_version: 1
_score: 1
_source: {
relatedSources: null
fetchTimeStamp: 25-09-2012 10:37:31
@soumyamrs
soumyamrs / DNApack
Created October 18, 2012 10:55
excelDNA
C:\Excel>c:\Projects\ExcelDna\Distribution\ExcelDnaPack.exe FirstAddIn.dna
Using base add-in FirstAddIn.xll
-> Updating resource: Type: ASSEMBLY_LZMA, Name: EXCELDNA.INTEGRATION, Length
: 51237
-> Updating resource: Type: CONFIG, Name: __MAIN__, Length: 908
~~> ExternalLibrary path AlgotreeExcel.dll resolved to C:\Excel\AlgotreeExcel.
dll.
-> Updating resource: Type: ASSEMBLY_LZMA, Name: ALGOTREEEXCEL, Length: 24266
-> Updating resource: Type: DNA, Name: __MAIN__, Length: 387
@soumyamrs
soumyamrs / gist:3825426
Created October 3, 2012 06:36
Content field
Content: <div id="storytext" algoscore="347.5"> <p algoscore="31.0">September 17, 2012: 2:40 PM ET</p> <div id="ie_dottop" algoscore="17.0"> <img src="http://i2.cdn.turner.com/money/dam/assets/120911010941-chicago-teacher-strike-story-top.jpg" width="475" height="324" alt="" border="0" /> <p algoscore="7.0"> About 26,000 teachers and support staff are striking in Chicago for the second week in a row. The strike could impact the government's monthly jobs report for September.</p> </div> <p algoscore="38.0"> NEW YORK (CNNMoney) -- As it drags on for a second week, the Chicago teachers strike is so large it could distort national economic statistics, including the Labor Department's key monthly jobs report. </p> <p algoscore="35.0"> About 26,000 teachers and support staff are striking in Chicago,<a href="http://news.blogs.cnn.com/2012/09/10/what-are-key-issues-in-chicago-public-school-strike/"> demanding higher pay</a>, better job security and changes to a new evaluation system. </p> <p algoscore="35.0"> The str
@soumyamrs
soumyamrs / gist:3712071
Created September 13, 2012 05:23
DateHisogramFacets
facets: {
histo1: {
_type: date_histogram
entries: [
{
time: 918432000000
count: 1
}
{
time: 1035763200000