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
[
{
"fid":1,
"device_id":"sjdc-3750-stack",
"local_Intrfce":" mgmt0",
"hldtme":"140",
"capability":"S I",
"platform":"WS-C3750G-48T",
"port_id":"Gig5\/0\/47"
},
{
"type": "object",
"properties": {
"cuisines": {
"required": true,
"type": "string"
},
"phoneNumber": {
"required": true,
"type": "string"
#!/bin/bash
if [ -z $1 ] ; then
echo "Please enter hostname"
exit
fi
hostname=$1
curl -XDELETE "http://$hostname:9200/news"
@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">