This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def take(iterable, num): | |
for i, elem in enumerate(iterable): | |
yield elem | |
if i + 1 == num: | |
break | |
def chain_pop(*iterable): | |
for elem in iterable: | |
while True: | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest | |
xmlns="http://ns.adobe.com/f4m/1.0"> | |
<id>live</id> | |
<startTime>2006-07-24T07:15:00+01:00</startTime> | |
<mimeType>video/mp4</mimeType> | |
<streamType>live</streamType> | |
<deliveryType>streaming</deliveryType> | |
<bootstrapInfo | |
id="boot-live-audio=128000-video=2200000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"persistent": {}, | |
"transient": { | |
"indices.cache.filter.size": "30%" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::: [sissor2][2hXe71VwRO6qAkz09mHlEw][inet[/192.168.110.90:9300]] | |
38.4% (192ms out of 500ms) cpu usage by thread 'elasticsearch[sissor2][search][T#48]' | |
10/10 snapshots sharing following 179 elements | |
org.apache.lucene.search.vectorhighlight.XFieldQuery$QueryPhraseMap.addToMap(XFieldQuery.java:420) | |
org.apache.lucene.search.vectorhighlight.XFieldQuery$QueryPhraseMap.addToMap(XFieldQuery.java:420) | |
org.apache.lucene.search.vectorhighlight.XFieldQuery$QueryPhraseMap.addToMap(XFieldQuery.java:420) | |
org.apache.lucene.search.vectorhighlight.XFieldQuery$QueryPhraseMap.addToMap(XFieldQuery.java:420) | |
org.apache.lucene.search.vectorhighlight.XFieldQuery$QueryPhraseMap.addToMap(XFieldQuery.java:420) | |
org.apache.lucene.search.vectorhighlight.XFieldQuery$QueryPhraseMap.addToMap(XFieldQuery.java:420) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2013-08-29 08:43:32,061][INFO ][node ] [Iron Man] version[0.90.3], pid[8222], build[5c38d60/2013-08-06T13:18:31Z] | |
[2013-08-29 08:43:32,062][INFO ][node ] [Iron Man] initializing ... | |
[2013-08-29 08:43:32,062][DEBUG][node ] [Iron Man] using home [/home/blaurent/downloads/elasticsearch-0.90.3], config [/home/blaurent/downloads/elasticsearch-0.90.3/config], data [[/home/blaurent/downloads/elasticsearch-0.90.3/data]], logs [/home/blaurent/downloads/elasticsearch-0.90.3/logs], work [/home/blaurent/downloads/elasticsearch-0.90.3/work], plugins [/home/blaurent/downloads/elasticsearch-0.90.3/plugins] | |
[2013-08-29 08:43:32,067][INFO ][plugins ] [Iron Man] loaded [], sites [] | |
[2013-08-29 08:43:32,086][DEBUG][common.compress.lzf ] using [UnsafeChunkDecoder] decoder | |
[2013-08-29 08:43:32,096][DEBUG][env ] [Iron Man] using node location [[/home/blaurent/downloads/elasticsearch-0.90.3/data/elasticsearch/nodes/0]], local_nod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script and configuration to test stemmer | |
# | |
# Check arguments | |
hostname=$1 | |
indexname=$2 | |
if [ -z "$hostname" ] || [ -z "$indexname" ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See https://groups.google.com/d/topic/elasticsearch/OA4rlKL5DNg/discussion for context. | |
The query : | |
{ | |
"query": { | |
"prefix": { | |
"field^2": "pre" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script and configuration to test analyser | |
# | |
# Check arguments | |
hostname=$1 | |
indexname=$2 | |
if [ -z "$hostname" ] || [ -z "$indexname" ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n "Deleting ... " | |
curl -XDELETE http://localhost:9200/test_date | |
echo "" | |
echo -n "Create index ... " | |
curl -XPUT http://localhost:9200/test_date | |
echo "" | |
echo -n "Put mapping ... " | |
curl -XPUT http://localhost:9200/test_date/test/_mapping -d ' | |
{ | |
"test":{ |