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
<?php | |
/** | |
* Equivalent to performRequest in curlMultiHandleConnection | |
*/ | |
public function performRequest($method, $uri, $params = null, $body = null) | |
{ | |
$uri = $this->getURI($uri, $params); | |
$request = $this->buildGuzzleRequest($method, $uri, $body); |
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/run-all.sh "/usr/share/elasticsearch/bin/elasticsearch -Des.path.conf=/etc/elasticsearch/" | |
Starting Elasticsearch... | |
Warming the JVM... | |
....................done! | |
------------------------------ Transient Tests ------------------------------ | |
elasticsearch tests |
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
curl -XPUT "http://localhost:9200/test" -d' | |
{ | |
"mappings": { | |
"test" : { | |
"properties": { | |
"arrayfield" : { | |
"type": "string" | |
} | |
} | |
} |
I hereby claim:
- I am polyfractal on github.
- I am polyfractal (https://keybase.io/polyfractal) on keybase.
- I have a public key ASBPje2PPWOEKEtFV006hag1mOZ7HYqck57tn2ImyPTj1go
To claim this, I am signing this object:
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
var alter = require('../lib/alter.js'); | |
var _ = require('lodash'); | |
var Chainable = require('../lib/classes/chainable'); | |
module.exports = new Chainable('movingstd', { | |
args: [ | |
{ | |
name: 'inputSeries', | |
types: ['seriesList'] | |
}, | |
{ |
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
#Create the index with no mapping | |
curl -XPUT localhost:9200/startswith/ | |
#add some data | |
curl -XPOST localhost:9200/startswith/test/ -d '{"title":"river dog"}' | |
curl -XPOST localhost:9200/startswith/test/ -d '{"title":"data"}' | |
curl -XPOST localhost:9200/startswith/test/ -d '{"title":"drive"}' | |
curl -XPOST localhost:9200/startswith/test/ -d '{"title":"drunk"}' | |
curl -XPOST localhost:9200/startswith/test/ -d '{"title":"dzone"}' |
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
#create a test index with shingle mapping | |
curl -XPUT localhost:9200/test -d '{ | |
"settings":{ | |
"index":{ | |
"analysis":{ | |
"analyzer":{ | |
"analyzer_shingle":{ | |
"tokenizer":"standard", | |
"filter":["standard", "lowercase", "filter_stop", "filter_shingle"] | |
} |
OlderNewer