Skip to content

Instantly share code, notes, and snippets.

View Vineeth-Mohan's full-sized avatar

Vineeth Mohan Vineeth-Mohan

  • Factweavers
  • India
View GitHub Profile
@Vineeth-Mohan
Vineeth-Mohan / gist:1346922
Created November 8, 2011 03:28
Faceting on Key-Value pair list
Index mapping
{
"public" : {
"properties" : {
"list" : {
"properties" : {
"name" : {"type" : "string"},
"link" : {"type" : "string"}
}
}
Documents
Document-1
{
list : [ {company : yahoo , tag : internet } ,
{company : IBM , tag : software }]
}
Document-2
{
list : [ {company : IBM , tag : service } ,
[2011-12-16 13:32:46,343][DEBUG][action.index ] [Varnae] [algotree][1], node[IK_2Yx7EQUmA4w2CzH5-5Q], [P], s[STARTED]: Failed to execute [index {[algotree][public][DkmC7fUHT067OzNpXYoqAg], source[{"ParentUrl":"http://rss.cnn.com/fortunetermsheet","Tags":"news","relatedSources":"null","Link":"http://rss.cnn.com/~r/fortunetermsheet/~3/kBhbKyq2jck/","fetchTimeStamp":"16-12-2011 13:30:05","SourceName":"cnn","Author":"Fortune Editors","actualTimeStamp":"14-12-2011 15:30:55","Content":"December 14, 2011: 5:00 AM ET\n\n\n\n\n\nLooking for a place to put your money next year? 5 top money managers share their wisdom.\n\nInterview by Geoff Colvin, senior editor-at-large\n\n\n\nFORTUNE -- So volatility is the new normal. We're pretty clear on that after the past few years of market turmoil. But how do we move beyond today's palpitations to make long-term investment decisions with confidence? At a time when few if any asset classes have seen steady performance, it's hard to know what choices can help us sleep
{"ParentUrl":"http://localhost/utc.rss","Tags":"news","relatedSources":"null","Link":"http://online.wsj.com/article/SB10001424052970204643804577101523976012472.html?mod=rss_whats_news_us","fetchTimeStamp":"16-12-2011 23:39:17","SourceName":"VM","Author":"","actualTimeStamp":"16-12-2011 19:27:09","Content":"The dollar lost some of its recent gains Friday, while the euro posted modest gains and held above the $1.30 level.\n\nThe safe-haven play on the greenback eroded after a report showed the cost of living held flat in November. Prices paid by U.S. consumers for a broad range of goods and services were unchanged on a seasonally adjusted basis in November, according to the Labor Department Friday, while the core rate of inflation rose 0.2%.\n\n\"The stickiness in price growth dampens the [Federal Open Market Committee's] scope to expand monetary policy further as Fed officials see the recovery gathering pace in the following year,\" said David Song, a currency analyst at DailyFX.\n\nThe euro rose to $1.3030 fr
package com.algoTree.DataSouceFactory;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import org.apache.log4j.Logger;
import com.algoTree.Commons.Feed;
public abstract class DataSource {
package com.algoTree.Utils.Helper;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css">
<link rel="stylesheet" type="text/css" href="css/jquery-ui.css">
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jquery.autocomplete.js" type="text/javascript"></script>
<script src="js/jquery-ui.js" type="text/javascript"></script>
<script src="js/json_sans_eval.js" type="text/javascript"></script>
<script src="js/jquery.spellcheck.js" type="text/javascript" charset="utf-8"></script>
<script src="js/config.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
2012-01-15 21:16:15.318::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2012-01-15 21:16:15.348::INFO: jetty-6.1.x
2012-01-15 21:16:15.393::INFO: Extract file:/home/vineeth/cloud9/cloud9-developer-preview.b0206.jar to /tmp/Jetty_0_0_0_0_2600_cloud9.developer.preview.b0206.jar____40f81o/webapp
2012-01-15 21:16:18.654:/:INFO: Initializing Spring root WebApplicationContext
2012-01-15 21:16:25,650 [main] ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.ExceptionInInitializerError
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:87)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.mortbay.j
<dataFlowManager globalPriority=2 protoTypeName=Edgar >
<pluginList>
<plugin pluginPrioirty=5 >FTPFolder</plugin>
<plugin pluginPrioirty=4 >FTPChild</plugin>
<plugin pluginPrioirty=3 >IDXList</plugin>
<plugin pluginPrioirty=2 >IDXChild</plugin>
<plugin pluginPrioirtyFTPFolder=1 >FileFetchChild</plugin>
</pluginList>
</dataFlowManager>
2012-01-23 17:12:41,662 [main] WARN n.s.e.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/home/vineeth/workspace/OG-Platform/projects/OG-Examples/lib/jar/net.sourceforge.ehcache/ehcache/ehcache-core-1.7.2.jar!/ehcache-failsafe.xml
2012-01-23 17:12:51,360 [main] ERROR c.o.e.m.SimulatedMarketDataGenerator - Not enough fields in CSV on line 2
2012-01-23 17:12:52,705 [main] ERROR c.o.e.m.SimulatedMarketDataGenerator - Not enough fields in CSV on line 506
2012-01-23 17:12:53,080 [main] ERROR c.o.e.m.SimulatedMarketDataGenerator - Not enough fields in CSV on line 673
2012-01-23 17:12:53,082 [main] ERROR c.o.e.m.SimulatedMarketDataGenerator - Not enough fields in CSV on line 675
2012-01-23 17:12:53,084 [main] ERROR c.o.e.m.SimulatedMarketDataGenerator - Not enough fields in CSV on line 677
2012-01-23 17:12:53,155 [pool-1-thread-1] ERROR c.o.e.f.CompiledFunctionService - Couldn't initialize function ForexVolatilitySurfaceFunction