12677 lines
428 KiB
XML
12677 lines
428 KiB
XML
<testsuites>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="0" name="bulk/10_basic.yaml" timestamp="2013-11-11T20:05:34.936Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.06">
|
|
<testcase name="Array of objects" time="0.04" classname="bulk/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body:
|
|
[ { index: { _index: 'test_index', _type: 'test_type', _id: 'test_id' } },
|
|
{ f1: 'v1', f2: 42 },
|
|
{ index: { _index: 'test_index', _type: 'test_type', _id: 'test_id2' } },
|
|
{ f1: 'v2', f2: 47 },
|
|
[length]: 4 ],
|
|
timeout: 10000,
|
|
bulkBody: true,
|
|
method: 'POST',
|
|
path: '/_bulk',
|
|
query: { refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_bulk?refresh=true" -XPOST -d "{\"index\":{\"_index\":\"test_index\",\"_type\":\"test_type\",\"_id\":\"test_id\"}}
|
|
{\"f1\":\"v1\",\"f2\":42}
|
|
{\"index\":{\"_index\":\"test_index\",\"_type\":\"test_type\",\"_id\":\"test_id2\"}}
|
|
{\"f1\":\"v2\",\"f2\":47}
|
|
"
|
|
<- 200
|
|
{"took":31,"items":[{"index":{"_index":"test_index","_type":"test_type","_id":"test_id","_version":1,"ok":true}},{"index":{"_index":"test_index","_type":"test_type","_id":"test_id2","_version":1,"ok":true}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_index/_count',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_count?pretty=true" -XPOST
|
|
<- 200
|
|
{"count":2,"_shards":{"total":5,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="1" name="bulk/20_list_of_strings.yaml" timestamp="2013-11-11T20:05:34.996Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.079">
|
|
<testcase name="List of strings" time="0.039" classname="bulk/20_list_of_strings.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body:
|
|
[ '{"index": {"_index": "test_index", "_type": "test_type", "_id": "test_id"}}',
|
|
'{"f1": "v1", "f2": 42}',
|
|
'{"index": {"_index": "test_index", "_type": "test_type", "_id": "test_id2"}}',
|
|
'{"f1": "v2", "f2": 47}',
|
|
[length]: 4 ],
|
|
timeout: 10000,
|
|
bulkBody: true,
|
|
method: 'POST',
|
|
path: '/_bulk',
|
|
query: { refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_bulk?refresh=true" -XPOST -d "{\"index\": {\"_index\": \"test_index\", \"_type\": \"test_type\", \"_id\": \"test_id\"}}
|
|
{\"f1\": \"v1\", \"f2\": 42}
|
|
{\"index\": {\"_index\": \"test_index\", \"_type\": \"test_type\", \"_id\": \"test_id2\"}}
|
|
{\"f1\": \"v2\", \"f2\": 47}
|
|
"
|
|
<- 200
|
|
{"took":30,"items":[{"index":{"_index":"test_index","_type":"test_type","_id":"test_id","_version":1,"ok":true}},{"index":{"_index":"test_index","_type":"test_type","_id":"test_id2","_version":1,"ok":true}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_index/_count',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_count?pretty=true" -XPOST
|
|
<- 200
|
|
{"count":2,"_shards":{"total":5,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="2" name="bulk/30_big_string.yaml" timestamp="2013-11-11T20:05:35.075Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.052">
|
|
<testcase name="One big string" time="0.039" classname="bulk/30_big_string.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: '\n{"index": {"_index": "test_index", "_type": "test_type", "_id": "test_id"}}\n{"f1": "v1", "f2": 42}\n{"index": {"_index": "test_index", "_type": "test_type", "_id": "test_id2"}}\n{"f1": "v2", "f2": 47}\n',
|
|
timeout: 10000,
|
|
bulkBody: true,
|
|
method: 'POST',
|
|
path: '/_bulk',
|
|
query: { refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_bulk?refresh=true" -XPOST -d "
|
|
{\"index\": {\"_index\": \"test_index\", \"_type\": \"test_type\", \"_id\": \"test_id\"}}
|
|
{\"f1\": \"v1\", \"f2\": 42}
|
|
{\"index\": {\"_index\": \"test_index\", \"_type\": \"test_type\", \"_id\": \"test_id2\"}}
|
|
{\"f1\": \"v2\", \"f2\": 47}
|
|
"
|
|
<- 200
|
|
{"took":28,"items":[{"index":{"_index":"test_index","_type":"test_type","_id":"test_id","_version":1,"ok":true}},{"index":{"_index":"test_index","_type":"test_type","_id":"test_id2","_version":1,"ok":true}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_index/_count',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_count?pretty=true" -XPOST
|
|
<- 200
|
|
{"count":2,"_shards":{"total":5,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="3" name="cluster.node_info/10_basic.yaml" timestamp="2013-11-11T20:05:35.127Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.011">
|
|
<testcase name="node_info test" time="0.004" classname="cluster.node_info/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'GET', path: '/_nodes', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_nodes?pretty=true" -XGET
|
|
<- 200
|
|
{"ok":true,"cluster_name":"elasticsearch","nodes":{"0k3_XE_MToid4uf9azr6gA":{"name":"Absalom","transport_address":"inet[/192.168.1.3:9300]","hostname":"Spencers-MacBook-Pro.local","version":"1.0.0.Beta1-SNAPSHOT","http_address":"inet[/192.168.1.3:9200]"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="4" name="cluster.node_stats/10_basic.yaml" timestamp="2013-11-11T20:05:35.138Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.01">
|
|
<testcase name="Nodes stats" time="0.005" classname="cluster.node_stats/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_nodes/stats',
|
|
query: { indices: true, transport: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_nodes/stats?indices=true&transport=true" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","nodes":{"0k3_XE_MToid4uf9azr6gA":{"timestamp":1384200335141,"name":"Absalom","transport_address":"inet[/192.168.1.3:9300]","hostname":"Spencers-MacBook-Pro.local","indices":{"docs":{"count":0,"deleted":0},"store":{"size_in_bytes":0,"throttle_time_in_millis":0},"indexing":{"index_total":2886,"index_time_in_millis":2745,"index_current":120,"delete_total":360,"delete_time_in_millis":1,"delete_current":0},"get":{"total":4080,"time_in_millis":18,"exists_total":3000,"exists_time_in_millis":18,"missing_total":1080,"missing_time_in_millis":0,"current":0},"search":{"open_contexts":0,"query_total":2800,"query_time_in_millis":59,"query_current":0,"fetch_total":500,"fetch_time_in_millis":38,"fetch_current":0},"merges":{"current":0,"current_docs":0,"current_size_in_bytes":0,"total":0,"total_time_in_millis":0,"total_docs":0,"total_size_in_bytes":0},"refresh":{"total":14291,"total_time_in_millis":3001},"flush":{"total":298,"total_time_in_millis":145},"warmer":{"current":0,"total":0,"total_time_in_millis":0},"filter_cache":{"memory_size_in_bytes":0,"evictions":0},"id_cache":{"memory_size_in_bytes":0},"fielddata":{"memory_size_in_bytes":0,"evictions":0},"percolate":{"total":0,"time_in_millis":0,"current":0,"memory_size_in_bytes":0,"memory_size":"0b"},"completion":{"size_in_bytes":0}},"transport":{"server_open":13,"rx_count":0,"rx_size_in_bytes":0,"tx_count":0,"tx_size_in_bytes":0}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="5" name="cluster.put_settings/10_basic.yaml" timestamp="2013-11-11T20:05:35.148Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.02">
|
|
<testcase name="Test put settings" time="0.013" classname="cluster.put_settings/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { transient: { 'discovery.zen.minimum_master_nodes': 1 } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/_cluster/settings',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/settings?pretty=true" -XPUT -d "{\"transient\":{\"discovery.zen.minimum_master_nodes\":1}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true,"persistent":{},"transient":{"discovery.zen.minimum_master_nodes":"1"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/settings',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/settings?pretty=true" -XGET
|
|
<- 200
|
|
{"persistent":{},"transient":{"discovery.zen.minimum_master_nodes":"1"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="6" name="cluster.reroute/10_basic.yaml" timestamp="2013-11-11T20:05:35.168Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.014">
|
|
<testcase name="Basic sanity check" time="0.007" classname="cluster.reroute/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_cluster/reroute',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/reroute?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"acknowledged":true,"state":{"master_node":"0k3_XE_MToid4uf9azr6gA","blocks":{},"nodes":{"0k3_XE_MToid4uf9azr6gA":{"name":"Absalom","transport_address":"inet[/192.168.1.3:9300]","attributes":{}}},"routing_table":{"indices":{}},"routing_nodes":{"unassigned":[],"nodes":{"0k3_XE_MToid4uf9azr6gA":[]}},"allocations":[]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="7" name="cluster.state/10_basic.yaml" timestamp="2013-11-11T20:05:35.182Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.016">
|
|
<testcase name="cluster state test" time="0.009" classname="cluster.state/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/state',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/state?pretty=true" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","master_node":"0k3_XE_MToid4uf9azr6gA","blocks":{},"nodes":{"0k3_XE_MToid4uf9azr6gA":{"name":"Absalom","transport_address":"inet[/192.168.1.3:9300]","attributes":{}}},"metadata":{"templates":{"test":{"template":"test-*","order":0,"settings":{"index.number_of_replicas":"0","index.number_of_shards":"1"},"mappings":{}}},"indices":{}},"routing_table":{"indices":{}},"routing_nodes":{"unassigned":[],"nodes":{"0k3_XE_MToid4uf9azr6gA":[]}},"allocations":[]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="8" name="create/10_with_id.yaml" timestamp="2013-11-11T20:05:35.198Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.049">
|
|
<testcase name="Create with ID" time="0.038" classname="create/10_with_id.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 409
|
|
{"error":"DocumentAlreadyExistsException[[test_1][2] [test][1]: document already exists]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="9" name="create/15_without_id.yaml" timestamp="2013-11-11T20:05:35.247Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.042">
|
|
<testcase name="Create without ID" time="0.031" classname="create/15_without_id.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"dXmOLE8PQfaMJuWDrHHjEQ","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/dXmOLE8PQfaMJuWDrHHjEQ',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/dXmOLE8PQfaMJuWDrHHjEQ?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"dXmOLE8PQfaMJuWDrHHjEQ","_version":1,"exists":true, "_source" : {"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="10" name="create/30_internal_version.yaml" timestamp="2013-11-11T20:05:35.289Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.045">
|
|
<testcase name="Internal version" time="0.03" classname="create/30_internal_version.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 409
|
|
{"error":"DocumentAlreadyExistsException[[test_1][2] [test][1]: document already exists]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="11" name="create/35_external_version.yaml" timestamp="2013-11-11T20:05:35.334Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.049">
|
|
<testcase name="External version" time="0.034" classname="create/35_external_version.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { version: 5, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?version=5&version_type=external" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { version: 5, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?version=5&version_type=external" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 409
|
|
{"error":"VersionConflictEngineException[[test_1][2] [test][1]: version conflict, current [5], provided [5]]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { version: 6, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?version=6&version_type=external" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 409
|
|
{"error":"DocumentAlreadyExistsException[[test_1][2] [test][1]: document already exists]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="12" name="create/40_routing.yaml" timestamp="2013-11-11T20:05:35.383Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.087">
|
|
<testcase name="Routing" time="0.04" classname="create/40_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?routing=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_routing', routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_routing&routing=5" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 404
|
|
{"_index":"test_1","_type":"test","_id":"1","exists":false}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="13" name="create/50_parent.yaml" timestamp="2013-11-11T20:05:35.470Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.258">
|
|
<testcase name="Parent" time="0.245" classname="create/50_parent.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 500
|
|
{"error":"RoutingMissingException[routing is required for [test_1]/[test]/[1]]","status":500}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?parent=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_parent,_routing', parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_parent%2C_routing&parent=5" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"5","_parent":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 404
|
|
{"_index":"test_1","_type":"test","_id":"1","exists":false}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="14" name="create/55_parent_with_routing.yaml" timestamp="2013-11-11T20:05:35.728Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.967">
|
|
<testcase name="Parent with routing" time="0.251" classname="create/55_parent_with_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?parent=5&routing=4" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_parent,_routing', parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_parent%2C_routing&parent=5&routing=4" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"4","_parent":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5" -XGET
|
|
<- 404
|
|
{"_index":"test_1","_type":"test","_id":"1","exists":false}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=4" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="15" name="create/60_refresh.yaml" timestamp="2013-11-11T20:05:36.695Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.269">
|
|
<testcase name="Refresh" time="0.254" classname="create/60_refresh.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { settings: { 'index.refresh_interval': -1 } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"settings\":{\"index.refresh_interval\":-1}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { term: { _id: 1 } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_search?pretty=true" -XPOST -d "{\"query\":{\"term\":{\"_id\":1}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2/_create',
|
|
query: { refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2/_create?refresh=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { term: { _id: 2 } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_search?pretty=true" -XPOST -d "{\"query\":{\"term\":{\"_id\":2}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"2","_score":1.0, "_source" : {"foo":"bar"}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="16" name="create/70_timestamp.yaml" timestamp="2013-11-11T20:05:36.964Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.269">
|
|
<testcase name="Timestamp" time="0.256" classname="create/70_timestamp.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _timestamp: { enabled: 1, store: 'yes' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_timestamp\":{\"enabled\":1,\"store\":\"yes\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_timestamp' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_timestamp" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_timestamp":1384200337195}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { timestamp: 1372011280000 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?timestamp=1372011280000" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":3}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_timestamp' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_timestamp" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":3,"exists":true,"fields":{"_timestamp":1372011280000}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":4}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { timestamp: '2013-06-23T18:14:40.000Z' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?timestamp=2013-06-23T18%3A14%3A40.000Z" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_timestamp' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_timestamp" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":5,"exists":true,"fields":{"_timestamp":1372011280000}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="17" name="create/75_ttl.yaml" timestamp="2013-11-11T20:05:37.233Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.077">
|
|
<testcase name="TTL" time="0.064" classname="create/75_ttl.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _ttl: { enabled: 1, store: 'yes', default: '10s' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_ttl\":{\"enabled\":1,\"store\":\"yes\",\"default\":\"10s\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_ttl' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_ttl" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_ttl":9996}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { ttl: 100000 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?ttl=100000" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":3}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_ttl' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_ttl" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":3,"exists":true,"fields":{"_ttl":99997}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":4}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { ttl: '20s' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?ttl=20s" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_ttl' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_ttl" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":5,"exists":true,"fields":{"_ttl":19996}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":6}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_create',
|
|
query: { timestamp: '2013-06-23T18:14:40.000Z', ttl: '20s' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_create?timestamp=2013-06-23T18%3A14%3A40.000Z&ttl=20s" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 400
|
|
{"error":"MapperParsingException[failed to parse [_ttl]]; nested: AlreadyExpiredException[already expired [test_1]/[test]/[1] due to expire at [1372011300000] and was processed at [1384200337296]]; ","status":400}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="18" name="delete/10_basic.yaml" timestamp="2013-11-11T20:05:37.310Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.044">
|
|
<testcase name="Basic" time="0.031" classname="delete/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="19" name="delete/20_internal_version.yaml" timestamp="2013-11-11T20:05:37.354Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.046">
|
|
<testcase name="Internal version" time="0.034" classname="delete/20_internal_version.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: { version: 2 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?version=2" -XDELETE
|
|
<- 409
|
|
{"error":"VersionConflictEngineException[[test_1][2] [test][1]: version conflict, current [1], provided [2]]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: { version: 1 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?version=1" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="20" name="delete/25_external_version.yaml" timestamp="2013-11-11T20:05:37.400Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.049">
|
|
<testcase name="External version" time="0.034" classname="delete/25_external_version.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { version: 5, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?version=5&version_type=external" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: { version: 4, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?version=4&version_type=external" -XDELETE
|
|
<- 409
|
|
{"error":"VersionConflictEngineException[[test_1][2] [test][1]: version conflict, current [5], provided [4]]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: { version: 6, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?version=6&version_type=external" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":6}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="21" name="delete/30_routing.yaml" timestamp="2013-11-11T20:05:37.449Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.062">
|
|
<testcase name="Routing" time="0.049" classname="delete/30_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=4" -XDELETE
|
|
<- 404
|
|
{"ok":true,"found":false,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=5" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="22" name="delete/40_parent.yaml" timestamp="2013-11-11T20:05:37.512Z" hostname="localhost" tests="1" failures="0" errors="0" time="1.53">
|
|
<testcase name="Parent" time="0.25" classname="delete/40_parent.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'GET', path: '/', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/?pretty=true" -XGET
|
|
<- 200
|
|
{
|
|
"ok" : true,
|
|
"status" : 200,
|
|
"name" : "Absalom",
|
|
"version" : {
|
|
"number" : "1.0.0.Beta1",
|
|
"build_hash" : "d43f3d83d8bae03e6d202b9d7037013cae70a954",
|
|
"build_timestamp" : "2013-10-31T00:10:20Z",
|
|
"build_snapshot" : true,
|
|
"lucene_version" : "4.5.1"
|
|
},
|
|
"tagline" : "You Know, for Search"
|
|
}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=1" -XDELETE
|
|
<- 404
|
|
{"ok":true,"found":false,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="23" name="delete/45_parent_with_routing.yaml" timestamp="2013-11-11T20:05:39.042Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Parent with routing" time="0.24" classname="delete/45_parent_with_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5&routing=4" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5', routing: '1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5&routing=1" -XDELETE
|
|
<- 404
|
|
{"ok":true,"found":false,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5&routing=4" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="24" name="delete/50_refresh.yaml" timestamp="2013-11-11T20:05:41.042Z" hostname="localhost" tests="1" failures="0" errors="0" time="1.999">
|
|
<testcase name="Refresh" time="0.271" classname="delete/50_refresh.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { settings: { 'index.refresh_interval': -1 } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"settings\":{\"index.refresh_interval\":-1}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?refresh=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: { refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?refresh=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { terms: { _id: [ 1, 2, [length]: 2 ] } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_search?pretty=true" -XPOST -d "{\"query\":{\"terms\":{\"_id\":[1,2]}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":2,"max_score":0.35355338,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":0.35355338, "_source" : {"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"2","_score":0.35355338, "_source" : {"foo":"bar"}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { terms: { _id: [ 1, 2, [length]: 2 ] } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_search?pretty=true" -XPOST -d "{\"query\":{\"terms\":{\"_id\":[1,2]}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":2,"max_score":0.35355338,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":0.35355338, "_source" : {"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"2","_score":0.35355338, "_source" : {"foo":"bar"}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/2',
|
|
query: { refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?refresh=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"found":true,"_index":"test_1","_type":"test","_id":"2","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { terms: { _id: [ 1, 2, [length]: 2 ] } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_search?pretty=true" -XPOST -d "{\"query\":{\"terms\":{\"_id\":[1,2]}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":0.35355338,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":0.35355338, "_source" : {"foo":"bar"}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="25" name="delete/60_missing.yaml" timestamp="2013-11-11T20:05:43.041Z" hostname="localhost" tests="2" failures="0" errors="0" time="4.001">
|
|
<testcase name="Missing document with catch" time="0.027" classname="delete/60_missing.yaml"/>
|
|
<testcase name="Missing document with ignore" time="0.03" classname="delete/60_missing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XDELETE
|
|
<- 404
|
|
{"ok":true,"found":false,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XDELETE
|
|
<- 404
|
|
{"ok":true,"found":false,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="26" name="delete_by_query/10_basic.yaml" timestamp="2013-11-11T20:05:47.042Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Basic delete_by_query" time="0.064" classname="delete_by_query/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'baz' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?pretty=true" -XPOST -d "{\"foo\":\"baz\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'foo' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/3',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/3?pretty=true" -XPOST -d "{\"foo\":\"foo\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"3","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'POST', path: '/_refresh', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { match: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_1/_query',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_query?pretty=true" -XDELETE -d "{\"match\":{\"foo\":\"bar\"}}"
|
|
<- 200
|
|
{"ok":true,"_indices":{"test_1":{"_shards":{"total":5,"successful":5,"failed":0}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'POST', path: '/_refresh', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/_count',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_count?pretty=true" -XPOST
|
|
<- 200
|
|
{"count":2,"_shards":{"total":5,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="27" name="exists/10_basic.yaml" timestamp="2013-11-11T20:05:49.042Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Basic" time="0.054" classname="exists/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XHEAD
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="28" name="exists/30_parent.yaml" timestamp="2013-11-11T20:05:51.042Z" hostname="localhost" tests="1" failures="0" errors="0" time="1.999">
|
|
<testcase name="Parent" time="0.246" classname="exists/30_parent.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XHEAD
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="29" name="exists/40_routing.yaml" timestamp="2013-11-11T20:05:53.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2.001">
|
|
<testcase name="Routing" time="0.043" classname="exists/40_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=5" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XHEAD
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="30" name="exists/55_parent_with_routing.yaml" timestamp="2013-11-11T20:05:55.042Z" hostname="localhost" tests="1" failures="0" errors="0" time="1.999">
|
|
<testcase name="Parent with routing" time="0.252" classname="exists/55_parent_with_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5&routing=4" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5&routing=4" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5" -XHEAD
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=4" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="31" name="exists/60_realtime_refresh.yaml" timestamp="2013-11-11T20:05:57.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Realtime Refresh" time="0.063" classname="exists/60_realtime_refresh.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { settings: { index: { refresh_interval: -1, number_of_replicas: 0 } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"settings\":{\"index\":{\"refresh_interval\":-1,\"number_of_replicas\":0}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"green","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":0}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: { realtime: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?realtime=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: { realtime: false } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?realtime=false" -XHEAD
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/test/1',
|
|
query: { realtime: false, refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?realtime=false&refresh=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="32" name="exists/70_defaults.yaml" timestamp="2013-11-11T20:05:59.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Client-side default type" time="0.065" classname="exists/70_defaults.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_1/_all/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_all/1?pretty=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="33" name="explain/10_basic.yaml" timestamp="2013-11-11T20:06:01.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Basic mlt" time="0.043" classname="explain/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar', title: 'howdy' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\",\"title\":\"howdy\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'POST', path: '/_refresh', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_explain',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_explain?pretty=true" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","matched":true,"explanation":{"value":1.0,"description":"ConstantScore(cache(_type:test)), product of:","details":[{"value":1.0,"description":"boost"},{"value":1.0,"description":"queryNorm"}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="34" name="explain/20_source_filtering.yaml" timestamp="2013-11-11T20:06:03.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Source filtering" time="0.069" classname="explain/20_source_filtering.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/_refresh',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_explain',
|
|
query: { _source: false } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_explain?_source=false" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","matched":true,"explanation":{"value":1.0,"description":"ConstantScore(cache(_type:test)), product of:","details":[{"value":1.0,"description":"boost"},{"value":1.0,"description":"queryNorm"}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_explain',
|
|
query: { _source: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_explain?_source=true" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","matched":true,"explanation":{"value":1.0,"description":"ConstantScore(cache(_type:test)), product of:","details":[{"value":1.0,"description":"boost"},{"value":1.0,"description":"queryNorm"}]},"get":{"exists":true, "_source" : {"include":{"field1":"v1","field2":"v2"},"count":1}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_explain',
|
|
query: { _source: 'include.field1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_explain?_source=include.field1" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","matched":true,"explanation":{"value":1.0,"description":"ConstantScore(cache(_type:test)), product of:","details":[{"value":1.0,"description":"boost"},{"value":1.0,"description":"queryNorm"}]},"get":{"exists":true, "_source" : {"include":{"field1":"v1"}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_explain',
|
|
query: { _source_include: 'include.field1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_explain?_source_include=include.field1" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","matched":true,"explanation":{"value":1.0,"description":"ConstantScore(cache(_type:test)), product of:","details":[{"value":1.0,"description":"boost"},{"value":1.0,"description":"queryNorm"}]},"get":{"exists":true, "_source" : {"include":{"field1":"v1"}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_explain',
|
|
query: { _source_include: 'include.field1,include.field2' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_explain?_source_include=include.field1%2Cinclude.field2" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","matched":true,"explanation":{"value":1.0,"description":"ConstantScore(cache(_type:test)), product of:","details":[{"value":1.0,"description":"boost"},{"value":1.0,"description":"queryNorm"}]},"get":{"exists":true, "_source" : {"include":{"field2":"v2","field1":"v1"}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_explain',
|
|
query: { _source_exclude: '*.field2', _source_include: 'include' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_explain?_source_exclude=*.field2&_source_include=include" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","matched":true,"explanation":{"value":1.0,"description":"ConstantScore(cache(_type:test)), product of:","details":[{"value":1.0,"description":"boost"},{"value":1.0,"description":"queryNorm"}]},"get":{"exists":true, "_source" : {"include":{"field1":"v1"}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="35" name="get/10_basic.yaml" timestamp="2013-11-11T20:06:05.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Basic" time="0.043" classname="get/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'Hello: 中文' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/%E4%B8%AD%E6%96%87',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/%E4%B8%AD%E6%96%87?pretty=true" -XPOST -d "{\"foo\":\"Hello: 中文\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"中文","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/%E4%B8%AD%E6%96%87',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/%E4%B8%AD%E6%96%87?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"中文","_version":1,"exists":true, "_source" : {"foo":"Hello: 中文"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/_all/%E4%B8%AD%E6%96%87',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_all/%E4%B8%AD%E6%96%87?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"中文","_version":1,"exists":true, "_source" : {"foo":"Hello: 中文"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="36" name="get/15_default_values.yaml" timestamp="2013-11-11T20:06:07.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2.001">
|
|
<testcase name="Default values" time="0.034" classname="get/15_default_values.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/_all/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_all/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="37" name="get/20_fields.yaml" timestamp="2013-11-11T20:06:09.042Z" hostname="localhost" tests="1" failures="0" errors="0" time="1.999">
|
|
<testcase name="Fields" time="0.051" classname="get/20_fields.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar', count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\",\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: 'foo' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=foo" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: 'foo,count' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=foo%2Ccount" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"count":1,"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: 'foo,count,_source' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=foo%2Ccount%2C_source" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar","count":1},"fields":{"count":1,"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="38" name="get/30_parent.yaml" timestamp="2013-11-11T20:06:11.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Parent" time="0.242" classname="get/30_parent.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '中文' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=%E4%B8%AD%E6%96%87" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_parent,_routing', parent: '中文' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_parent%2C_routing&parent=%E4%B8%AD%E6%96%87" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"中文","_parent":"中文"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 404
|
|
{"_index":"test_1","_type":"test","_id":"1","exists":false}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="39" name="get/40_routing.yaml" timestamp="2013-11-11T20:06:13.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Routing" time="0.039" classname="get/40_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_routing', routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_routing&routing=5" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 404
|
|
{"_index":"test_1","_type":"test","_id":"1","exists":false}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="40" name="get/55_parent_with_routing.yaml" timestamp="2013-11-11T20:06:15.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="1.999">
|
|
<testcase name="Parent with routing" time="0.049" classname="get/55_parent_with_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5&routing=4" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_parent,_routing', parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_parent%2C_routing&parent=5&routing=4" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"4","_parent":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5" -XGET
|
|
<- 404
|
|
{"_index":"test_1","_type":"test","_id":"1","exists":false}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=4" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="41" name="get/60_realtime_refresh.yaml" timestamp="2013-11-11T20:06:17.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Realtime Refresh" time="0.249" classname="get/60_realtime_refresh.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { settings: { index: { refresh_interval: -1, number_of_replicas: 0 } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"settings\":{\"index\":{\"refresh_interval\":-1,\"number_of_replicas\":0}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"green","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":0}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { realtime: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?realtime=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { realtime: false } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?realtime=false" -XGET
|
|
<- 404
|
|
{"_index":"test_1","_type":"test","_id":"1","exists":false}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { realtime: false, refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?realtime=false&refresh=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="42" name="get/70_source_filtering.yaml" timestamp="2013-11-11T20:06:19.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Source filtering" time="0.058" classname="get/70_source_filtering.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { _source: false } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?_source=false" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { _source: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?_source=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1","field2":"v2"},"count":1}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { _source: 'include.field1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?_source=include.field1" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { _source_include: 'include.field1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?_source_include=include.field1" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { _source_include: 'include.field1,include.field2' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?_source_include=include.field1%2Cinclude.field2" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field2":"v2","field1":"v1"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { _source_exclude: '*.field2', _source_include: 'include' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?_source_exclude=*.field2&_source_include=include" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: 'count', _source: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=count&_source=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1","field2":"v2"},"count":1},"fields":{"count":1}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="43" name="get/80_missing.yaml" timestamp="2013-11-11T20:06:21.041Z" hostname="localhost" tests="2" failures="0" errors="0" time="3.999">
|
|
<testcase name="Missing document with catch" time="0.004" classname="get/80_missing.yaml"/>
|
|
<testcase name="Missing document with ignore" time="0.008" classname="get/80_missing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"IndexMissingException[[test_1] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"IndexMissingException[[test_1] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="44" name="get_source/10_basic.yaml" timestamp="2013-11-11T20:06:25.040Z" hostname="localhost" tests="1" failures="0" errors="0" time="2.001">
|
|
<testcase name="Basic" time="0.044" classname="get_source/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?pretty=true" -XGET
|
|
<- 200
|
|
{"foo":"bar"}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/_all/1/_source',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_all/1/_source?pretty=true" -XGET
|
|
<- 200
|
|
{"foo":"bar"}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="45" name="get_source/15_default_values.yaml" timestamp="2013-11-11T20:06:27.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Default values" time="0.034" classname="get_source/15_default_values.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/_all/1/_source',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_all/1/_source?pretty=true" -XGET
|
|
<- 200
|
|
{"foo":"bar"}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="46" name="get_source/30_parent.yaml" timestamp="2013-11-11T20:06:29.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Parent" time="0.24" classname="get_source/30_parent.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?parent=5" -XGET
|
|
<- 200
|
|
{"foo":"bar"}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?pretty=true" -XGET
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="47" name="get_source/40_routing.yaml" timestamp="2013-11-11T20:06:31.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Routing" time="0.041" classname="get_source/40_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?routing=5" -XGET
|
|
<- 200
|
|
{"foo":"bar"}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?pretty=true" -XGET
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="48" name="get_source/55_parent_with_routing.yaml" timestamp="2013-11-11T20:06:33.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Parent with routing" time="0.247" classname="get_source/55_parent_with_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5&routing=4" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: { parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?parent=5&routing=4" -XGET
|
|
<- 200
|
|
{"foo":"bar"}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?parent=5" -XGET
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: { routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?routing=4" -XGET
|
|
<- 200
|
|
{"foo":"bar"}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="49" name="get_source/60_realtime_refresh.yaml" timestamp="2013-11-11T20:06:35.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Realtime" time="0.051" classname="get_source/60_realtime_refresh.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: { realtime: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?realtime=true" -XGET
|
|
<- 200
|
|
{"foo":"bar"}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: { realtime: false } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?realtime=false" -XGET
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: { realtime: false, refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?realtime=false&refresh=true" -XGET
|
|
<- 200
|
|
{"foo":"bar"}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="50" name="get_source/70_source_filtering.yaml" timestamp="2013-11-11T20:06:37.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="1.999">
|
|
<testcase name="Source filtering" time="0.041" classname="get_source/70_source_filtering.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?pretty=true" -XGET
|
|
<- 200
|
|
{"include":{"field1":"v1","field2":"v2"},"count":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?pretty=true" -XGET
|
|
<- 200
|
|
{"include":{"field1":"v1","field2":"v2"},"count":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?pretty=true" -XGET
|
|
<- 200
|
|
{"include":{"field1":"v1","field2":"v2"},"count":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="51" name="get_source/80_missing.yaml" timestamp="2013-11-11T20:06:39.040Z" hostname="localhost" tests="2" failures="0" errors="0" time="4">
|
|
<testcase name="Missing document with catch" time="0.005" classname="get_source/80_missing.yaml"/>
|
|
<testcase name="Missing document with ignore" time="0.009" classname="get_source/80_missing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"IndexMissingException[[test_1] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_source',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_source?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"IndexMissingException[[test_1] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="52" name="index/10_with_id.yaml" timestamp="2013-11-11T20:06:43.040Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Index with ID" time="0.032" classname="index/10_with_id.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test-weird-index-%E4%B8%AD%E6%96%87/weird.type/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test-weird-index-%E4%B8%AD%E6%96%87/weird.type/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test-weird-index-中文","_type":"weird.type","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test-weird-index-%E4%B8%AD%E6%96%87/weird.type/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test-weird-index-%E4%B8%AD%E6%96%87/weird.type/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test-weird-index-中文","_type":"weird.type","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="53" name="index/15_without_id.yaml" timestamp="2013-11-11T20:06:45.040Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Index without ID" time="0.041" classname="index/15_without_id.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"hmNT4cWdR0eg5YVx3LGMhg","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/hmNT4cWdR0eg5YVx3LGMhg',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/hmNT4cWdR0eg5YVx3LGMhg?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"hmNT4cWdR0eg5YVx3LGMhg","_version":1,"exists":true, "_source" : {"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="54" name="index/20_optype.yaml" timestamp="2013-11-11T20:06:47.040Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Optype" time="0.037" classname="index/20_optype.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { op_type: 'create' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?op_type=create" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { op_type: 'create' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?op_type=create" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 409
|
|
{"error":"DocumentAlreadyExistsException[[test_1][2] [test][1]: document already exists]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="55" name="index/30_internal_version.yaml" timestamp="2013-11-11T20:06:49.040Z" hostname="localhost" tests="1" failures="0" errors="0" time="2">
|
|
<testcase name="Internal version" time="0.05" classname="index/30_internal_version.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { version: 1 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?version=1" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 409
|
|
{"error":"VersionConflictEngineException[[test_1][2] [test][1]: version conflict, current [2], provided [1]]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { version: 2 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?version=2" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":3}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="56" name="index/35_external_version.yaml" timestamp="2013-11-11T20:06:51.040Z" hostname="localhost" tests="1" failures="0" errors="0" time="2.001">
|
|
<testcase name="External version" time="0.036" classname="index/35_external_version.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { version: 5, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?version=5&version_type=external" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { version: 5, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?version=5&version_type=external" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 409
|
|
{"error":"VersionConflictEngineException[[test_1][2] [test][1]: version conflict, current [5], provided [5]]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { version: 6, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?version=6&version_type=external" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":6}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="57" name="index/40_routing.yaml" timestamp="2013-11-11T20:06:53.041Z" hostname="localhost" tests="1" failures="0" errors="0" time="1.999">
|
|
<testcase name="Routing" time="0.043" classname="index/40_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_routing', routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_routing&routing=5" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 404
|
|
{"_index":"test_1","_type":"test","_id":"1","exists":false}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="58" name="index/50_parent.yaml" timestamp="2013-11-11T20:06:55.040Z" hostname="localhost" tests="1" failures="0" errors="0" time="1.517">
|
|
<testcase name="Parent" time="0.249" classname="index/50_parent.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 500
|
|
{"error":"RoutingMissingException[routing is required for [test_1]/[test]/[1]]","status":500}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_parent,_routing', parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_parent%2C_routing&parent=5" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"5","_parent":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 404
|
|
{"_index":"test_1","_type":"test","_id":"1","exists":false}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="59" name="index/55_parent_with_routing.yaml" timestamp="2013-11-11T20:06:56.557Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.107">
|
|
<testcase name="Parent with routing" time="0.098" classname="index/55_parent_with_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5&routing=4" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_parent,_routing', parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_parent%2C_routing&parent=5&routing=4" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"4","_parent":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=5" -XGET
|
|
<- 404
|
|
{"_index":"test_1","_type":"test","_id":"1","exists":false}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=4" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="60" name="index/60_refresh.yaml" timestamp="2013-11-11T20:06:56.665Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.261">
|
|
<testcase name="Refresh" time="0.249" classname="index/60_refresh.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { settings: { 'index.refresh_interval': -1 } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"settings\":{\"index.refresh_interval\":-1}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { term: { _id: 1 } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_search?pretty=true" -XPOST -d "{\"query\":{\"term\":{\"_id\":1}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: { refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?refresh=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { term: { _id: 2 } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_search?pretty=true" -XPOST -d "{\"query\":{\"term\":{\"_id\":2}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"2","_score":1.0, "_source" : {"foo":"bar"}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="61" name="index/70_timestamp.yaml" timestamp="2013-11-11T20:06:56.926Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.26">
|
|
<testcase name="Timestamp" time="0.25" classname="index/70_timestamp.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _timestamp: { enabled: 1, store: 'yes' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_timestamp\":{\"enabled\":1,\"store\":\"yes\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_timestamp' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_timestamp" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_timestamp":1384200417156}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { timestamp: 1372011280000 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?timestamp=1372011280000" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_timestamp' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_timestamp" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":2,"exists":true,"fields":{"_timestamp":1372011280000}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { timestamp: '2013-06-23T18:14:40.000Z' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?timestamp=2013-06-23T18%3A14%3A40.000Z" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":3}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_timestamp' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_timestamp" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":3,"exists":true,"fields":{"_timestamp":1372011280000}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="62" name="index/75_ttl.yaml" timestamp="2013-11-11T20:06:57.186Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.276">
|
|
<testcase name="TTL" time="0.263" classname="index/75_ttl.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _ttl: { enabled: 1, store: 'yes', default: '10s' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_ttl\":{\"enabled\":1,\"store\":\"yes\",\"default\":\"10s\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_ttl' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_ttl" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_ttl":9994}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { ttl: 100000 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?ttl=100000" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_ttl' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_ttl" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":2,"exists":true,"fields":{"_ttl":99995}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { ttl: '20s' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?ttl=20s" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":3}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_ttl' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_ttl" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":3,"exists":true,"fields":{"_ttl":19997}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { timestamp: '2013-06-23T18:14:40.000Z', ttl: '20s' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?timestamp=2013-06-23T18%3A14%3A40.000Z&ttl=20s" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 400
|
|
{"error":"MapperParsingException[failed to parse [_ttl]]; nested: AlreadyExpiredException[already expired [test_1]/[test]/[1] due to expire at [1372011300000] and was processed at [1384200417446]]; ","status":400}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="63" name="indices.analyze/10_analyze.yaml" timestamp="2013-11-11T20:06:57.462Z" hostname="localhost" tests="3" failures="0" errors="0" time="0.299">
|
|
<testcase name="Basic test" time="0.004" classname="indices.analyze/10_analyze.yaml"/>
|
|
<testcase name="Tokenizer and filter" time="0.003" classname="indices.analyze/10_analyze.yaml"/>
|
|
<testcase name="Index and field" time="0.235" classname="indices.analyze/10_analyze.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { method: 'HEAD', path: '/', timeout: 100 }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/?pretty=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_analyze',
|
|
query: { text: 'Foo Bar' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_analyze?text=Foo%20Bar" -XGET
|
|
<- 200
|
|
{"tokens":[{"token":"foo","start_offset":0,"end_offset":3,"type":"<ALPHANUM>","position":1},{"token":"bar","start_offset":4,"end_offset":7,"type":"<ALPHANUM>","position":2}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { method: 'HEAD', path: '/', timeout: 100 }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/?pretty=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_analyze',
|
|
query: { filters: 'lowercase', text: 'Foo Bar', tokenizer: 'keyword' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_analyze?filters=lowercase&text=Foo%20Bar&tokenizer=keyword" -XGET
|
|
<- 200
|
|
{"tokens":[{"token":"foo bar","start_offset":0,"end_offset":7,"type":"word","position":1}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { method: 'HEAD', path: '/', timeout: 100 }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/?pretty=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { mappings: { test: { properties: { text: { type: 'string', analyzer: 'whitespace' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"properties\":{\"text\":{\"type\":\"string\",\"analyzer\":\"whitespace\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test/_analyze',
|
|
query: { field: 'text', text: 'Foo Bar!' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test/_analyze?field=text&text=Foo%20Bar!" -XGET
|
|
<- 200
|
|
{"tokens":[{"token":"Foo","start_offset":0,"end_offset":3,"type":"word","position":1},{"token":"Bar!","start_offset":4,"end_offset":8,"type":"word","position":2}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="64" name="indices.analyze/20_analyze_text_format.yaml" timestamp="2013-11-11T20:06:57.761Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.029">
|
|
<testcase name="Text format" time="0.009" classname="indices.analyze/20_analyze_text_format.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_analyze',
|
|
query: { text: 'tHE BLACK and white! AND red', format: 'text' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_analyze?text=tHE%20BLACK%20and%20white!%20AND%20red&format=text" -XGET
|
|
<- 200
|
|
{"tokens":"[black:4->9:<ALPHANUM>]\n\n4: \n[white:14->19:<ALPHANUM>]\n\n6: \n[red:25->28:<ALPHANUM>]\n"}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="65" name="indices.clear_cache/10_basic.yaml" timestamp="2013-11-11T20:06:57.790Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.014">
|
|
<testcase name="clear_cache test" time="0.006" classname="indices.clear_cache/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_cache/clear',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cache/clear?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":0,"successful":0,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="66" name="indices.delete_alias/10_basic.yaml" timestamp="2013-11-11T20:06:57.804Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.046">
|
|
<testcase name="Basic test for delete alias" time="0.035" classname="indices.delete_alias/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/testind', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/testind?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { routing: 'routing value' },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/testind/_alias/testali',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/testind/_alias/testali?pretty=true" -XPUT -d "{\"routing\":\"routing value\"}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_alias/testali',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_alias/testali?pretty=true" -XGET
|
|
<- 200
|
|
{"testind":{"aliases":{"testali":{"index_routing":"routing value","search_routing":"routing value"}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/testind/_alias/testali',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/testind/_alias/testali?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/testind/_alias/testali',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/testind/_alias/testali?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"alias [testali] missing","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="67" name="indices.delete_mapping/10_basic.yaml" timestamp="2013-11-11T20:06:57.851Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.081">
|
|
<testcase name="delete mapping tests" time="0.067" classname="indices.delete_mapping/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string', analyzer: 'whitespace' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\",\"analyzer\":\"whitespace\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_index/test_type',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type?pretty=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_index/test_type',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_index/test_type',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type?pretty=true" -XHEAD
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="68" name="indices.exists/10_basic.yaml" timestamp="2013-11-11T20:06:57.932Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.047">
|
|
<testcase name="Test indices.exists" time="0.031" classname="indices.exists/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XHEAD
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_index', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="69" name="indices.get_field_mapping/10_basic.yaml" timestamp="2013-11-11T20:06:57.979Z" hostname="localhost" tests="5" failures="0" errors="0" time="0.273">
|
|
<testcase name="Get field mapping with no index and type" time="0.004" classname="indices.get_field_mapping/10_basic.yaml"/>
|
|
<testcase name="Get field mapping by index only" time="0.005" classname="indices.get_field_mapping/10_basic.yaml"/>
|
|
<testcase name="Get field mapping by type & field" time="0.005" classname="indices.get_field_mapping/10_basic.yaml"/>
|
|
<testcase name="Get field mapping by type & field, with another field that doesn't exist" time="0.005" classname="indices.get_field_mapping/10_basic.yaml"/>
|
|
<testcase name="Get field mapping with include_defaults" time="0.004" classname="indices.get_field_mapping/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_mapping/field/text',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mapping/field/text?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"test_type":{"text":{"full_name":"text", "mapping" : {"text":{"type":"string"}}}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/_mapping/field/text',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_mapping/field/text?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"test_type":{"text":{"full_name":"text", "mapping" : {"text":{"type":"string"}}}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/test_type/_mapping/field/text',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type/_mapping/field/text?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"test_type":{"text":{"full_name":"text", "mapping" : {"text":{"type":"string"}}}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/test_type/_mapping/field/text%2Ctext1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type/_mapping/field/text%2Ctext1?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"test_type":{"text":{"full_name":"text", "mapping" : {"text":{"type":"string"}}}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/test_type/_mapping/field/text',
|
|
query: { include_defaults: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type/_mapping/field/text?include_defaults=true" -XGET
|
|
<- 200
|
|
{"test_index":{"test_type":{"text":{"full_name":"text", "mapping" : {"text":{"type":"string","index_name":"text","boost":1.0,"index":"analyzed","store":false,"term_vector":"no","omit_norms":false,"index_options":"positions","analyzer":"default","postings_format":"default","doc_values_format":"default","similariry":"default","fielddata":{},"null_value":null,"include_in_all":false,"position_offset_gap":0,"search_quote_analyzer":"default","ignore_above":-1}}}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="70" name="indices.get_field_mapping/20_missing_field.yaml" timestamp="2013-11-11T20:06:58.252Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.04">
|
|
<testcase name="Raise 404 when field doesn't exist" time="0.025" classname="indices.get_field_mapping/20_missing_field.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string', analyzer: 'whitespace' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\",\"analyzer\":\"whitespace\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/test_type/_mapping/field/not_text',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type/_mapping/field/not_text?pretty=true" -XGET
|
|
<- 404
|
|
{}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="71" name="indices.get_field_mapping/30_missing_type.yaml" timestamp="2013-11-11T20:06:58.292Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.127">
|
|
<testcase name="Raise 404 when type doesn't exist" time="0.114" classname="indices.get_field_mapping/30_missing_type.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string', analyzer: 'whitespace' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\",\"analyzer\":\"whitespace\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/not_test_type/_mapping/field/text',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/not_test_type/_mapping/field/text?pretty=true" -XGET
|
|
<- 404
|
|
{}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="72" name="indices.get_field_mapping/40_missing_index.yaml" timestamp="2013-11-11T20:06:58.419Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.018">
|
|
<testcase name="Raise 404 when index doesn't exist" time="0.005" classname="indices.get_field_mapping/40_missing_index.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/type/_mapping/field/field',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/type/_mapping/field/field?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"IndexMissingException[[test_index] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="73" name="indices.get_mapping/10_basic.yaml" timestamp="2013-11-11T20:06:58.437Z" hostname="localhost" tests="3" failures="0" errors="0" time="0.164">
|
|
<testcase name="Get index mapping" time="0.004" classname="indices.get_mapping/10_basic.yaml"/>
|
|
<testcase name="Get type mapping - pre 1.0" time="0.001" classname="indices.get_mapping/10_basic.yaml"/>
|
|
<testcase name="Get type mapping - post 1.0" time="0.005" classname="indices.get_mapping/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string', analyzer: 'whitespace' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\",\"analyzer\":\"whitespace\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/_mapping',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_mapping?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"test_type":{"properties":{"text":{"type":"string","analyzer":"whitespace"}}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string', analyzer: 'whitespace' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\",\"analyzer\":\"whitespace\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string', analyzer: 'whitespace' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\",\"analyzer\":\"whitespace\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/test_type/_mapping',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type/_mapping?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"test_type":{"properties":{"text":{"type":"string","analyzer":"whitespace"}}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="74" name="indices.get_mapping/20_missing_type.yaml" timestamp="2013-11-11T20:06:58.601Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.043">
|
|
<testcase name="Raise 404 when type doesn't exist" time="0.03" classname="indices.get_mapping/20_missing_type.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test_type: { properties: { text: { type: 'string', analyzer: 'whitespace' } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT -d "{\"mappings\":{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\",\"analyzer\":\"whitespace\"}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/not_test_type/_mapping',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/not_test_type/_mapping?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"TypeMissingException[[test_index] type[not_test_type] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="75" name="indices.get_mapping/30_missing_index.yaml" timestamp="2013-11-11T20:06:58.644Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.014">
|
|
<testcase name="Raise 404 when index doesn't exist" time="0.004" classname="indices.get_mapping/30_missing_index.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/not_test_type/_mapping',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/not_test_type/_mapping?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"IndexMissingException[[test_index] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="76" name="indices.get_template/10_basic.yaml" timestamp="2013-11-11T20:06:58.658Z" hostname="localhost" tests="2" failures="0" errors="0" time="0.102">
|
|
<testcase name="Get template" time="0.012" classname="indices.get_template/10_basic.yaml"/>
|
|
<testcase name="Get all templates" time="0.015" classname="indices.get_template/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body:
|
|
{ template: 'test-*',
|
|
settings: { number_of_shards: 1, number_of_replicas: 0 } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/_template/test',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_template/test?pretty=true" -XPUT -d "{\"template\":\"test-*\",\"settings\":{\"number_of_shards\":1,\"number_of_replicas\":0}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_template/test',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_template/test?pretty=true" -XGET
|
|
<- 200
|
|
{"test":{"order":0,"template":"test-*","settings":{"index.number_of_replicas":"0","index.number_of_shards":"1"},"mappings":{}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { template: 'test-*', settings: { number_of_shards: 1 } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/_template/test',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_template/test?pretty=true" -XPUT -d "{\"template\":\"test-*\",\"settings\":{\"number_of_shards\":1}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { template: 'test2-*', settings: { number_of_shards: 1 } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/_template/test2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_template/test2?pretty=true" -XPUT -d "{\"template\":\"test2-*\",\"settings\":{\"number_of_shards\":1}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'GET', path: '/_template', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_template?pretty=true" -XGET
|
|
<- 200
|
|
{"test":{"order":0,"template":"test-*","settings":{"index.number_of_shards":"1"},"mappings":{}},"test2":{"order":0,"template":"test2-*","settings":{"index.number_of_shards":"1"},"mappings":{}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="77" name="indices.get_template/20_get_missing.yaml" timestamp="2013-11-11T20:06:58.760Z" hostname="localhost" tests="2" failures="0" errors="0" time="0.031">
|
|
<testcase name="Get missing template - post 0.90.3" time="0.003" classname="indices.get_template/20_get_missing.yaml"/>
|
|
<testcase name="Get missing template - pre 0.90.3" time="0.001" classname="indices.get_template/20_get_missing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/_template/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_template/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_template/test',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_template/test?pretty=true" -XGET
|
|
<- 404
|
|
{}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/_template/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_template/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="78" name="indices.open/10_basic.yaml" timestamp="2013-11-11T20:06:58.791Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.277">
|
|
<testcase name="Basic test for index open/close" time="0.262" classname="indices.open/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_index', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_index/_close',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_close?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 403, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_search?pretty=true" -XGET
|
|
<- 403
|
|
{"error":"ClusterBlockException[blocked by: [FORBIDDEN/4/index closed];]","status":403}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_index/_open',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_open?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_search?pretty=true" -XGET
|
|
<- 200
|
|
{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="79" name="indices.optimize/10_basic.yaml" timestamp="2013-11-11T20:06:59.068Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.047">
|
|
<testcase name="Optimize index tests" time="0.034" classname="indices.optimize/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/testing', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/testing?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/testing/_optimize',
|
|
query: { max_num_segments: 1 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/testing/_optimize?max_num_segments=1" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":3,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="80" name="indices.put_alias/10_basic.yaml" timestamp="2013-11-11T20:06:59.115Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.085">
|
|
<testcase name="Basic test for put alias" time="0.033" classname="indices.put_alias/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_index', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/_alias/test_alias',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_alias/test_alias?pretty=true" -XHEAD
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index/_alias/test_alias',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_alias/test_alias?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/_alias/test_alias',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_alias/test_alias?pretty=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_alias/test_alias',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_alias/test_alias?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"aliases":{"test_alias":{}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="81" name="indices.put_mapping/10_basic.yaml" timestamp="2013-11-11T20:06:59.200Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.052">
|
|
<testcase name="Test Create and update mapping" time="0.039" classname="indices.put_mapping/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_index', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { test_type: { properties: { text: { type: 'string', analyzer: 'whitespace' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index/test_type/_mapping',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type/_mapping?pretty=true" -XPUT -d "{\"test_type\":{\"properties\":{\"text\":{\"type\":\"string\",\"analyzer\":\"whitespace\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/_mapping',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_mapping?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"test_type":{"properties":{"text":{"type":"string","analyzer":"whitespace"}}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ test_type:
|
|
{ properties:
|
|
{ text:
|
|
{ type: 'multi_field',
|
|
fields:
|
|
{ text: { type: 'string', analyzer: 'whitespace' },
|
|
text_raw: { type: 'string', index: 'not_analyzed' } } } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index/test_type/_mapping',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type/_mapping?pretty=true" -XPUT -d "{\"test_type\":{\"properties\":{\"text\":{\"type\":\"multi_field\",\"fields\":{\"text\":{\"type\":\"string\",\"analyzer\":\"whitespace\"},\"text_raw\":{\"type\":\"string\",\"index\":\"not_analyzed\"}}}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/_mapping',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_mapping?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"test_type":{"properties":{"text":{"type":"multi_field","fields":{"text":{"type":"string","analyzer":"whitespace"},"text_raw":{"type":"string","index":"not_analyzed","omit_norms":true,"index_options":"docs","include_in_all":false}}}}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="82" name="indices.put_settings/10_basic.yaml" timestamp="2013-11-11T20:06:59.252Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.047">
|
|
<testcase name="Test indices settings" time="0.033" classname="indices.put_settings/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { settings: { index: { number_of_replicas: 0 } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test-index',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test-index?pretty=true" -XPUT -d "{\"settings\":{\"index\":{\"number_of_replicas\":0}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test-index/_settings',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test-index/_settings?pretty=true" -XGET
|
|
<- 200
|
|
{"test-index":{"settings":{"index.number_of_replicas":"0","index.number_of_shards":"5","index.version.created":"1000001","index.uuid":"sU4CXkW7SbqDsA2cwpOO4w"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { number_of_replicas: 1 },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/_settings',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_settings?pretty=true" -XPUT -d "{\"number_of_replicas\":1}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'GET', path: '/_settings', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_settings?pretty=true" -XGET
|
|
<- 200
|
|
{"test-index":{"settings":{"index.number_of_replicas":"1","index.number_of_shards":"5","index.version.created":"1000001","index.uuid":"sU4CXkW7SbqDsA2cwpOO4w"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="83" name="indices.put_template/10_basic.yaml" timestamp="2013-11-11T20:06:59.299Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.072">
|
|
<testcase name="Put template" time="0.058" classname="indices.put_template/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body:
|
|
{ template: 'test-*',
|
|
settings: { number_of_shards: 1, number_of_replicas: 0 } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/_template/test',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_template/test?pretty=true" -XPUT -d "{\"template\":\"test-*\",\"settings\":{\"number_of_shards\":1,\"number_of_replicas\":0}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_template/test',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_template/test?pretty=true" -XGET
|
|
<- 200
|
|
{"test":{"order":0,"template":"test-*","settings":{"index.number_of_replicas":"0","index.number_of_shards":"1"},"mappings":{}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="84" name="indices.put_warmer/10_basic.yaml" timestamp="2013-11-11T20:06:59.371Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.262">
|
|
<testcase name="Basic test for warmers" time="0.248" classname="indices.put_warmer/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_index', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/_warmer/test_warmer',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_warmer/test_warmer?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"IndexMissingException[[test_index] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_index/_warmer/test_warmer',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_warmer/test_warmer?pretty=true" -XPUT -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/_warmer/test_warmer',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_warmer/test_warmer?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"warmers":{"test_warmer":{"types":[],"source":{"query":{"match_all":{}}}}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/test_index/_warmer',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_warmer?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/_warmer/test_warmer',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_warmer/test_warmer?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"IndexMissingException[[test_index] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="85" name="indices.segments/10_basic.yaml" timestamp="2013-11-11T20:06:59.633Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.012">
|
|
<testcase name="segments test" time="0.004" classname="indices.segments/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'GET', path: '/_segments', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_segments?pretty=true" -XGET
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":0,"successful":0,"failed":0},"indices":{}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="86" name="indices.snapshot_index/10_basic.yaml" timestamp="2013-11-11T20:06:59.646Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.061">
|
|
<testcase name="snapshot_index test" time="0.01" classname="indices.snapshot_index/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_gateway/snapshot',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_gateway/snapshot?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":0,"successful":0,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="87" name="indices.stats/10_basic.yaml" timestamp="2013-11-11T20:06:59.707Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.04">
|
|
<testcase name="stats test" time="0.005" classname="indices.stats/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'GET', path: '/_stats', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_stats?pretty=true" -XGET
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":0,"successful":0,"failed":0},"_all":{"primaries":{},"total":{}},"indices":{}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="88" name="indices.status/10_basic.yaml" timestamp="2013-11-11T20:06:59.747Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.108">
|
|
<testcase name="Indices status test" time="0.075" classname="indices.status/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'GET', path: '/_status', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_status?pretty=true" -XGET
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":0,"successful":0,"failed":0},"indices":{}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'GET',
|
|
path: '/not_here/_status',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/not_here/_status?pretty=true" -XGET
|
|
<- 404
|
|
{"error":"IndexMissingException[[not_here] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="89" name="indices.update_aliases/10_basic.yaml" timestamp="2013-11-11T20:06:59.855Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.044">
|
|
<testcase name="Basic test for aliases" time="0.035" classname="indices.update_aliases/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_index', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/_alias/test_alias',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_alias/test_alias?pretty=true" -XHEAD
|
|
<- 404
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ actions:
|
|
[ { add:
|
|
{ index: 'test_index',
|
|
alias: 'test_alias',
|
|
routing: 'routing_value' } },
|
|
[length]: 1 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_aliases',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_aliases?pretty=true" -XPOST -d "{\"actions\":[{\"add\":{\"index\":\"test_index\",\"alias\":\"test_alias\",\"routing\":\"routing_value\"}}]}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
castExists: true,
|
|
method: 'HEAD',
|
|
path: '/_alias/test_alias',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_alias/test_alias?pretty=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_index/_aliases',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/_aliases?pretty=true" -XGET
|
|
<- 200
|
|
{"test_index":{"aliases":{"test_alias":{"index_routing":"routing_value","search_routing":"routing_value"}}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="90" name="indices.validate_query/10_basic.yaml" timestamp="2013-11-11T20:06:59.899Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.255">
|
|
<testcase name="Validate query api" time="0.236" classname="indices.validate_query/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/testing', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/testing?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_validate/query',
|
|
query: { q: 'query string' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_validate/query?q=query%20string" -XGET
|
|
<- 200
|
|
{"valid":true,"_shards":{"total":1,"successful":1,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { invalid_query: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_validate/query',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_validate/query?pretty=true" -XPOST -d "{\"query\":{\"invalid_query\":{}}}"
|
|
<- 200
|
|
{"valid":false,"_shards":{"total":1,"successful":1,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="91" name="info/10_info.yaml" timestamp="2013-11-11T20:07:00.154Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.02">
|
|
<testcase name="Info" time="0.006" classname="info/10_info.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'GET', path: '/', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/?pretty=true" -XGET
|
|
<- 200
|
|
{
|
|
"ok" : true,
|
|
"status" : 200,
|
|
"name" : "Absalom",
|
|
"version" : {
|
|
"number" : "1.0.0.Beta1",
|
|
"build_hash" : "d43f3d83d8bae03e6d202b9d7037013cae70a954",
|
|
"build_timestamp" : "2013-10-31T00:10:20Z",
|
|
"build_snapshot" : true,
|
|
"lucene_version" : "4.5.1"
|
|
},
|
|
"tagline" : "You Know, for Search"
|
|
}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="92" name="info/20_lucene_version.yaml" timestamp="2013-11-11T20:07:00.174Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.03">
|
|
<testcase name="Lucene Version" time="0.005" classname="info/20_lucene_version.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'GET', path: '/', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/?pretty=true" -XGET
|
|
<- 200
|
|
{
|
|
"ok" : true,
|
|
"status" : 200,
|
|
"name" : "Absalom",
|
|
"version" : {
|
|
"number" : "1.0.0.Beta1",
|
|
"build_hash" : "d43f3d83d8bae03e6d202b9d7037013cae70a954",
|
|
"build_timestamp" : "2013-10-31T00:10:20Z",
|
|
"build_snapshot" : true,
|
|
"lucene_version" : "4.5.1"
|
|
},
|
|
"tagline" : "You Know, for Search"
|
|
}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="93" name="mget/10_basic.yaml" timestamp="2013-11-11T20:07:00.204Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.151">
|
|
<testcase name="Basic multi-get" time="0.133" classname="mget/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_2', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_2?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_flush',
|
|
query: { refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_flush?refresh=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":20,"successful":10,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _index: 'test_2', _type: 'test', _id: 1 },
|
|
{ _index: 'test_1', _type: 'none', _id: 1 },
|
|
{ _index: 'test_1', _type: 'test', _id: 2 },
|
|
{ _index: 'test_1', _type: 'test', _id: 1 },
|
|
[length]: 4 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_index\":\"test_2\",\"_type\":\"test\",\"_id\":1},{\"_index\":\"test_1\",\"_type\":\"none\",\"_id\":1},{\"_index\":\"test_1\",\"_type\":\"test\",\"_id\":2},{\"_index\":\"test_1\",\"_type\":\"test\",\"_id\":1}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_2","_type":"test","_id":"1","exists":false},{"_index":"test_1","_type":"none","_id":"1","exists":false},{"_index":"test_1","_type":"test","_id":"2","exists":false},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="94" name="mget/11_default_index_type.yaml" timestamp="2013-11-11T20:07:00.355Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.098">
|
|
<testcase name="Default index/type" time="0.063" classname="mget/11_default_index_type.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_2', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_2?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":10,"active_shards":10,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":10}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _index: 'test_2', _id: 1 },
|
|
{ _type: 'none', _id: 1 },
|
|
{ _id: 2 },
|
|
{ _id: 1 },
|
|
[length]: 4 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_index\":\"test_2\",\"_id\":1},{\"_type\":\"none\",\"_id\":1},{\"_id\":2},{\"_id\":1}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_2","_type":"test","_id":"1","exists":false},{"_index":"test_1","_type":"none","_id":"1","exists":false},{"_index":"test_1","_type":"test","_id":"2","exists":false},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="95" name="mget/12_non_existent_index.yaml" timestamp="2013-11-11T20:07:00.454Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.08">
|
|
<testcase name="Non-existent index" time="0.068" classname="mget/12_non_existent_index.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { docs: [ { _index: 'test_2', _type: 'test', _id: 1 }, [length]: 1 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_index\":\"test_2\",\"_type\":\"test\",\"_id\":1}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_2","_type":"test","_id":"1","error":"[test_2] missing"}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ index: 'test_2',
|
|
docs: [ { _index: 'test_1', _type: 'test', _id: 1 }, [length]: 1 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"index\":\"test_2\",\"docs\":[{\"_index\":\"test_1\",\"_type\":\"test\",\"_id\":1}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="96" name="mget/13_missing_metadata.yaml" timestamp="2013-11-11T20:07:00.534Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.062">
|
|
<testcase name="Missing metadata" time="0.052" classname="mget/13_missing_metadata.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { docs: [ { _index: 'test_1', _type: 'test' }, [length]: 1 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_index\":\"test_1\",\"_type\":\"test\"}]}"
|
|
<- 500
|
|
{"error":"ActionRequestValidationException[Validation Failed: 1: id is missing for doc 0;]","status":500}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { docs: [ { _type: 'test', _id: 1 }, [length]: 1 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_type\":\"test\",\"_id\":1}]}"
|
|
<- 500
|
|
{"error":"ActionRequestValidationException[Validation Failed: 1: index is missing for doc 0;]","status":500}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { docs: [ [length]: 0 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"docs\":[]}"
|
|
<- 500
|
|
{"error":"ActionRequestValidationException[Validation Failed: 1: no documents to get;]","status":500}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: {},
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{}"
|
|
<- 500
|
|
{"error":"ActionRequestValidationException[Validation Failed: 1: no documents to get;]","status":500}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { docs: [ { _index: 'test_1', _id: 1 }, [length]: 1 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_index\":\"test_1\",\"_id\":1}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="97" name="mget/15_ids.yaml" timestamp="2013-11-11T20:07:00.596Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.104">
|
|
<testcase name="IDs" time="0.09" classname="mget/15_ids.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'baz' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test_2/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test_2/2?pretty=true" -XPOST -d "{\"foo\":\"baz\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test_2","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ 1, 2, [length]: 2 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?pretty=true" -XPOST -d "{\"ids\":[1,2]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"2","exists":false}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ 1, 2, [length]: 2 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_mget?pretty=true" -XPOST -d "{\"ids\":[1,2]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}},{"_index":"test_1","_type":"test_2","_id":"2","_version":1,"exists":true, "_source" : {"foo":"baz"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ [length]: 0 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_mget?pretty=true" -XPOST -d "{\"ids\":[]}"
|
|
<- 500
|
|
{"error":"ActionRequestValidationException[Validation Failed: 1: no documents to get;]","status":500}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: {},
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_mget?pretty=true" -XPOST -d "{}"
|
|
<- 500
|
|
{"error":"ActionRequestValidationException[Validation Failed: 1: no documents to get;]","status":500}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="98" name="mget/20_fields.yaml" timestamp="2013-11-11T20:07:00.700Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.103">
|
|
<testcase name="Fields" time="0.053" classname="mget/20_fields.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _id: 1 },
|
|
{ _id: 1, fields: 'foo' },
|
|
{ _id: 1, fields: [ 'foo', [length]: 1 ] },
|
|
{ _id: 1, fields: [ 'foo', '_source', [length]: 2 ] },
|
|
[length]: 4 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_id\":1},{\"_id\":1,\"fields\":\"foo\"},{\"_id\":1,\"fields\":[\"foo\"]},{\"_id\":1,\"fields\":[\"foo\",\"_source\"]}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"},"fields":{"foo":"bar"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _id: 1 },
|
|
{ _id: 1, fields: 'foo' },
|
|
{ _id: 1, fields: [ 'foo', [length]: 1 ] },
|
|
{ _id: 1, fields: [ 'foo', '_source', [length]: 2 ] },
|
|
[length]: 4 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: { fields: 'foo' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?fields=foo" -XPOST -d "{\"docs\":[{\"_id\":1},{\"_id\":1,\"fields\":\"foo\"},{\"_id\":1,\"fields\":[\"foo\"]},{\"_id\":1,\"fields\":[\"foo\",\"_source\"]}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"},"fields":{"foo":"bar"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _id: 1 },
|
|
{ _id: 1, fields: 'foo' },
|
|
{ _id: 1, fields: [ 'foo', [length]: 1 ] },
|
|
{ _id: 1, fields: [ 'foo', '_source', [length]: 2 ] },
|
|
[length]: 4 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: { fields: 'foo' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?fields=foo" -XPOST -d "{\"docs\":[{\"_id\":1},{\"_id\":1,\"fields\":\"foo\"},{\"_id\":1,\"fields\":[\"foo\"]},{\"_id\":1,\"fields\":[\"foo\",\"_source\"]}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"},"fields":{"foo":"bar"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _id: 1 },
|
|
{ _id: 1, fields: 'foo' },
|
|
{ _id: 1, fields: [ 'foo', [length]: 1 ] },
|
|
{ _id: 1, fields: [ 'foo', '_source', [length]: 2 ] },
|
|
[length]: 4 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: { fields: 'foo,_source' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?fields=foo%2C_source" -XPOST -d "{\"docs\":[{\"_id\":1},{\"_id\":1,\"fields\":\"foo\"},{\"_id\":1,\"fields\":[\"foo\"]},{\"_id\":1,\"fields\":[\"foo\",\"_source\"]}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"},"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"},"fields":{"foo":"bar"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="99" name="mget/20_fields_pre_0.90.3.yaml" timestamp="2013-11-11T20:07:00.803Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.007">
|
|
<testcase name="Fields" time="0.001" classname="mget/20_fields_pre_0.90.3.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="100" name="mget/30_parent.yaml" timestamp="2013-11-11T20:07:00.810Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.265">
|
|
<testcase name="Parent" time="0.25" classname="mget/30_parent.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=4" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?parent=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _id: 1 },
|
|
{ _id: 1,
|
|
parent: 5,
|
|
fields: [ '_parent', '_routing', [length]: 2 ] },
|
|
{ _id: 1,
|
|
parent: 4,
|
|
fields: [ '_parent', '_routing', [length]: 2 ] },
|
|
{ _id: 2,
|
|
parent: 5,
|
|
fields: [ '_parent', '_routing', [length]: 2 ] },
|
|
[length]: 4 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_id\":1},{\"_id\":1,\"parent\":5,\"fields\":[\"_parent\",\"_routing\"]},{\"_id\":1,\"parent\":4,\"fields\":[\"_parent\",\"_routing\"]},{\"_id\":2,\"parent\":5,\"fields\":[\"_parent\",\"_routing\"]}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","exists":false},{"_index":"test_1","_type":"test","_id":"1","exists":false},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"4","_parent":"4"}},{"_index":"test_1","_type":"test","_id":"2","_version":1,"exists":true,"fields":{"_routing":"5","_parent":"5"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="101" name="mget/40_routing.yaml" timestamp="2013-11-11T20:07:01.075Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.05">
|
|
<testcase name="Routing" time="0.036" classname="mget/40_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?routing=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _id: 1 },
|
|
{ _id: 1, routing: 4 },
|
|
{ _id: 1, routing: 5 },
|
|
[length]: 3 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: { fields: '_routing' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?fields=_routing" -XPOST -d "{\"docs\":[{\"_id\":1},{\"_id\":1,\"routing\":4},{\"_id\":1,\"routing\":5}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","exists":false},{"_index":"test_1","_type":"test","_id":"1","exists":false},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"5"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="102" name="mget/55_parent_with_routing.yaml" timestamp="2013-11-11T20:07:01.125Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.252">
|
|
<testcase name="Parent" time="0.237" classname="mget/55_parent_with_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { parent: '4', routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?parent=4&routing=5" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _id: 1 },
|
|
{ _id: 1, parent: 4 },
|
|
{ _id: 1, parent: 4, routing: 5 },
|
|
[length]: 3 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: { fields: '_routing,_parent' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?fields=_routing%2C_parent" -XPOST -d "{\"docs\":[{\"_id\":1},{\"_id\":1,\"parent\":4},{\"_id\":1,\"parent\":4,\"routing\":5}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","exists":false},{"_index":"test_1","_type":"test","_id":"1","exists":false},{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_parent":"4","_routing":"5"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="103" name="mget/60_realtime_refresh.yaml" timestamp="2013-11-11T20:07:01.377Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.268">
|
|
<testcase name="Realtime Refresh" time="0.252" classname="mget/60_realtime_refresh.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { settings: { index: { refresh_interval: -1, number_of_replicas: 0 } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"settings\":{\"index\":{\"refresh_interval\":-1,\"number_of_replicas\":0}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"green","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":0}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ 1, [length]: 1 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: { realtime: false } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?realtime=false" -XPOST -d "{\"ids\":[1]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","exists":false}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ 1, [length]: 1 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: { realtime: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?realtime=true" -XPOST -d "{\"ids\":[1]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ 1, [length]: 1 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_mget',
|
|
query: { realtime: false, refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_mget?realtime=false&refresh=true" -XPOST -d "{\"ids\":[1]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar"}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="104" name="mget/70_source_filtering.yaml" timestamp="2013-11-11T20:07:01.645Z" hostname="localhost" tests="8" failures="0" errors="0" time="0.407">
|
|
<testcase name="Source filtering - true/false" time="0.005" classname="mget/70_source_filtering.yaml"/>
|
|
<testcase name="Source filtering - include field" time="0.004" classname="mget/70_source_filtering.yaml"/>
|
|
<testcase name="Source filtering - include nested field" time="0.003" classname="mget/70_source_filtering.yaml"/>
|
|
<testcase name="Source filtering - exclude field" time="0.003" classname="mget/70_source_filtering.yaml"/>
|
|
<testcase name="Source filtering - ids and true/false" time="0.007" classname="mget/70_source_filtering.yaml"/>
|
|
<testcase name="Source filtering - ids and include field" time="0.004" classname="mget/70_source_filtering.yaml"/>
|
|
<testcase name="Source filtering - ids and include nested field" time="0.004" classname="mget/70_source_filtering.yaml"/>
|
|
<testcase name="Source filtering - ids and exclude field" time="0.004" classname="mget/70_source_filtering.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _index: 'test_1', _type: 'test', _id: '1', _source: false },
|
|
{ _index: 'test_1', _type: 'test', _id: '2', _source: true },
|
|
[length]: 2 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_index\":\"test_1\",\"_type\":\"test\",\"_id\":\"1\",\"_source\":false},{\"_index\":\"test_1\",\"_type\":\"test\",\"_id\":\"2\",\"_source\":true}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true},{"_index":"test_1","_type":"test","_id":"2","_version":1,"exists":true, "_source" : {"include":{"field1":"v1","field2":"v2"},"count":1}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _index: 'test_1',
|
|
_type: 'test',
|
|
_id: '1',
|
|
_source: 'include.field1' },
|
|
{ _index: 'test_1',
|
|
_type: 'test',
|
|
_id: '2',
|
|
_source: [ 'include.field1', [length]: 1 ] },
|
|
[length]: 2 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_index\":\"test_1\",\"_type\":\"test\",\"_id\":\"1\",\"_source\":\"include.field1\"},{\"_index\":\"test_1\",\"_type\":\"test\",\"_id\":\"2\",\"_source\":[\"include.field1\"]}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}},{"_index":"test_1","_type":"test","_id":"2","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _index: 'test_1',
|
|
_type: 'test',
|
|
_id: '1',
|
|
_source: { include: 'include.field1' } },
|
|
{ _index: 'test_1',
|
|
_type: 'test',
|
|
_id: '2',
|
|
_source: { include: [ 'include.field1', [length]: 1 ] } },
|
|
[length]: 2 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_index\":\"test_1\",\"_type\":\"test\",\"_id\":\"1\",\"_source\":{\"include\":\"include.field1\"}},{\"_index\":\"test_1\",\"_type\":\"test\",\"_id\":\"2\",\"_source\":{\"include\":[\"include.field1\"]}}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}},{"_index":"test_1","_type":"test","_id":"2","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ docs:
|
|
[ { _index: 'test_1',
|
|
_type: 'test',
|
|
_id: '1',
|
|
_source:
|
|
{ include: [ 'include', [length]: 1 ],
|
|
exclude: [ '*.field2', [length]: 1 ] } },
|
|
[length]: 1 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_mget',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_mget?pretty=true" -XPOST -d "{\"docs\":[{\"_index\":\"test_1\",\"_type\":\"test\",\"_id\":\"1\",\"_source\":{\"include\":[\"include\"],\"exclude\":[\"*.field2\"]}}]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ 1, 2, [length]: 2 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/_mget',
|
|
query: { _source: false } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_mget?_source=false" -XPOST -d "{\"ids\":[1,2]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true},{"_index":"test_1","_type":"test","_id":"2","_version":1,"exists":true}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ 1, 2, [length]: 2 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/_mget',
|
|
query: { _source: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_mget?_source=true" -XPOST -d "{\"ids\":[1,2]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1","field2":"v2"},"count":1}},{"_index":"test_1","_type":"test","_id":"2","_version":1,"exists":true, "_source" : {"include":{"field1":"v1","field2":"v2"},"count":1}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ 1, 2, [length]: 2 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/_mget',
|
|
query: { _source: 'include.field1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_mget?_source=include.field1" -XPOST -d "{\"ids\":[1,2]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}},{"_index":"test_1","_type":"test","_id":"2","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ 1, 2, [length]: 2 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/_mget',
|
|
query: { _source_include: 'include.field1,count' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_mget?_source_include=include.field1%2Ccount" -XPOST -d "{\"ids\":[1,2]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"count":1,"include":{"field1":"v1"}}},{"_index":"test_1","_type":"test","_id":"2","_version":1,"exists":true, "_source" : {"count":1,"include":{"field1":"v1"}}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { ids: [ 1, 2, [length]: 2 ] },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/_mget',
|
|
query: { _source_exclude: '*.field2', _source_include: 'include' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/_mget?_source_exclude=*.field2&_source_include=include" -XPOST -d "{\"ids\":[1,2]}"
|
|
<- 200
|
|
{"docs":[{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}},{"_index":"test_1","_type":"test","_id":"2","_version":1,"exists":true, "_source" : {"include":{"field1":"v1"}}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="105" name="mlt/10_basic.yaml" timestamp="2013-11-11T20:07:02.052Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.051">
|
|
<testcase name="Basic mlt" time="0.04" classname="mlt/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar', title: 'howdy' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\",\"title\":\"howdy\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'POST', path: '/_refresh', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1/_mlt',
|
|
query: { mlt_fields: 'title' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_mlt?mlt_fields=title" -XGET
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="106" name="msearch/10_basic.yaml" timestamp="2013-11-11T20:07:02.103Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.063">
|
|
<testcase name="Basic multi-search" time="0.047" classname="msearch/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'baz' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2?pretty=true" -XPOST -d "{\"foo\":\"baz\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'foo' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/3',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/3?pretty=true" -XPOST -d "{\"foo\":\"foo\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"3","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'POST', path: '/_refresh', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
[ { index: 'test_1' },
|
|
{ query: { match_all: {} } },
|
|
{ index: 'test_2' },
|
|
{ query: { match_all: {} } },
|
|
{ search_type: 'count', index: 'test_1' },
|
|
{ query: { match: { foo: 'bar' } } },
|
|
[length]: 6 ],
|
|
timeout: 10000,
|
|
bulkBody: true,
|
|
method: 'POST',
|
|
path: '/_msearch',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_msearch?pretty=true" -XPOST -d "{\"index\":\"test_1\"}
|
|
{\"query\":{\"match_all\":{}}}
|
|
{\"index\":\"test_2\"}
|
|
{\"query\":{\"match_all\":{}}}
|
|
{\"search_type\":\"count\",\"index\":\"test_1\"}
|
|
{\"query\":{\"match\":{\"foo\":\"bar\"}}}
|
|
"
|
|
<- 200
|
|
{"responses":[{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":3,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"foo":"bar"}},{"_index":"test_1","_type":"test","_id":"3","_score":1.0, "_source" : {"foo":"foo"}},{"_index":"test_1","_type":"test","_id":"2","_score":1.0, "_source" : {"foo":"baz"}}]}},{"error":"IndexMissingException[[test_2] missing]"},{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":0.0,"hits":[]}}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="107" name="percolate/10_old.yaml" timestamp="2013-11-11T20:07:02.166Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.007">
|
|
<testcase name="Basic percolation tests" time="0.001" classname="percolate/10_old.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="108" name="percolate/15_new.yaml" timestamp="2013-11-11T20:07:02.173Z" hostname="localhost" tests="1" failures="1" errors="0" time="0.11">
|
|
<testcase name="Basic percolation tests" time="0" classname="percolate/15_new.yaml">
|
|
<failure message="Error: Error: expected undefined to sort of equal [ { _index: 'test_index', _id: 'test_percolator' } ] (http://localhost:8888/yaml_tests.js?_c=J9hwb:10807)" type="AssertError"/>
|
|
</testcase>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_index', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_index/.percolator/test_percolator',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/.percolator/test_percolator?pretty=true" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_index","_type":".percolator","_id":"test_percolator","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'POST', path: '/_refresh', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_index/test_type/_percolate',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_index/test_type/_percolate?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"bar\"}}"
|
|
<- 200
|
|
{"took":1,"_shards":{"total":5,"successful":5,"failed":0},"total":0}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="109" name="ping/10_ping.yaml" timestamp="2013-11-11T20:07:02.283Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.043">
|
|
<testcase name="Ping" time="0.022" classname="ping/10_ping.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { method: 'HEAD', path: '/', timeout: 100 }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/?pretty=true" -XHEAD
|
|
<- 200
|
|
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="110" name="scroll/10_basic.yaml" timestamp="2013-11-11T20:07:02.326Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.088">
|
|
<testcase name="Basic scroll" time="0.078" classname="scroll/10_basic.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_scroll', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_scroll?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_scroll/test/42',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_scroll/test/42?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_scroll","_type":"test","_id":"42","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'POST', path: '/_refresh', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_scroll/_search',
|
|
query: { scroll: '1m', search_type: 'scan' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_scroll/_search?scroll=1m&search_type=scan" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"_scroll_id":"c2Nhbjs1OzI5NjE6MGszX1hFX01Ub2lkNHVmOWF6cjZnQTsyOTYzOjBrM19YRV9NVG9pZDR1ZjlhenI2Z0E7Mjk2NDowazNfWEVfTVRvaWQ0dWY5YXpyNmdBOzI5NjI6MGszX1hFX01Ub2lkNHVmOWF6cjZnQTsyOTY1OjBrM19YRV9NVG9pZDR1ZjlhenI2Z0E7MTt0b3RhbF9oaXRzOjE7","took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":0.0,"hits":[]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_search/scroll/c2Nhbjs1OzI5NjE6MGszX1hFX01Ub2lkNHVmOWF6cjZnQTsyOTYzOjBrM19YRV9NVG9pZDR1ZjlhenI2Z0E7Mjk2NDowazNfWEVfTVRvaWQ0dWY5YXpyNmdBOzI5NjI6MGszX1hFX01Ub2lkNHVmOWF6cjZnQTsyOTY1OjBrM19YRV9NVG9pZDR1ZjlhenI2Z0E7MTt0b3RhbF9oaXRzOjE7',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_search/scroll/c2Nhbjs1OzI5NjE6MGszX1hFX01Ub2lkNHVmOWF6cjZnQTsyOTYzOjBrM19YRV9NVG9pZDR1ZjlhenI2Z0E7Mjk2NDowazNfWEVfTVRvaWQ0dWY5YXpyNmdBOzI5NjI6MGszX1hFX01Ub2lkNHVmOWF6cjZnQTsyOTY1OjBrM19YRV9NVG9pZDR1ZjlhenI2Z0E7MTt0b3RhbF9oaXRzOjE7?pretty=true" -XGET
|
|
<- 200
|
|
{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":0.0,"hits":[{"_index":"test_scroll","_type":"test","_id":"42","_score":0.0, "_source" : {"foo":"bar"}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="111" name="search/10_source_filtering.yaml" timestamp="2013-11-11T20:07:02.415Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.108">
|
|
<testcase name="Source filtering" time="0.083" classname="search/10_source_filtering.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { include: { field1: 'v1', field2: 'v2' }, count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"include\":{\"field1\":\"v1\",\"field2\":\"v2\"},\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'POST', path: '/_refresh', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: '{ _source: true, query: { match_all: {} } }',
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?pretty=true" -XPOST -d "{ _source: true, query: { match_all: {} } }"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"include":{"field1":"v1","field2":"v2"},"count":1}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: '{ _source: false, query: { match_all: {} } }',
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?pretty=true" -XPOST -d "{ _source: false, query: { match_all: {} } }"
|
|
<- 200
|
|
{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?pretty=true" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"include":{"field1":"v1","field2":"v2"},"count":1}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { _source: 'include.field1', query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?pretty=true" -XPOST -d "{\"_source\":\"include.field1\",\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"include":{"field1":"v1"}}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { _source: 'include.field2', query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: { _source_include: 'include.field1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?_source_include=include.field1" -XPOST -d "{\"_source\":\"include.field2\",\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"include":{"field1":"v1"}}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: { _source_include: 'include.field1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?_source_include=include.field1" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"include":{"field1":"v1"}}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: { _source_exclude: 'count' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?_source_exclude=count" -XPOST -d "{\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"include":{"field2":"v2","field1":"v1"}}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ _source: [ 'include.field1', 'include.field2', [length]: 2 ],
|
|
query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?pretty=true" -XPOST -d "{\"_source\":[\"include.field1\",\"include.field2\"],\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"include":{"field2":"v2","field1":"v1"}}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ _source: { include: [ 'include.field1', 'include.field2', [length]: 2 ] },
|
|
query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?pretty=true" -XPOST -d "{\"_source\":{\"include\":[\"include.field1\",\"include.field2\"]},\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"include":{"field2":"v2","field1":"v1"}}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ _source: { includes: 'include', excludes: '*.field2' },
|
|
query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?pretty=true" -XPOST -d "{\"_source\":{\"includes\":\"include\",\"excludes\":\"*.field2\"},\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"include":{"field1":"v1"}}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ fields: [ 'include.field2', [length]: 1 ],
|
|
query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?pretty=true" -XPOST -d "{\"fields\":[\"include.field2\"],\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0,"fields":{"include.field2":"v2"}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ fields: [ 'include.field2', '_source', [length]: 2 ],
|
|
query: { match_all: {} } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/_search?pretty=true" -XPOST -d "{\"fields\":[\"include.field2\",\"_source\"],\"query\":{\"match_all\":{}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":1.0, "_source" : {"include":{"field1":"v1","field2":"v2"},"count":1},"fields":{"include.field2":"v2"}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="112" name="search/20_default_values.yaml" timestamp="2013-11-11T20:07:02.523Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.086">
|
|
<testcase name="Default index" time="0.07" classname="search/20_default_values.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_2', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_2?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'PUT', path: '/test_1', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_2/test/42',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_2/test/42?pretty=true" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_2","_type":"test","_id":"42","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1%2Ctest_2/_refresh',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1%2Ctest_2/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":20,"successful":10,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { match: { foo: 'bar' } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_all/test/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_all/test/_search?pretty=true" -XPOST -d "{\"query\":{\"match\":{\"foo\":\"bar\"}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":10,"successful":10,"failed":0},"hits":{"total":2,"max_score":0.30685282,"hits":[{"_index":"test_1","_type":"test","_id":"1","_score":0.30685282, "_source" : {"foo":"bar"}},{"_index":"test_2","_type":"test","_id":"42","_score":0.30685282, "_source" : {"foo":"bar"}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="113" name="suggest/10_basic.yaml" timestamp="2013-11-11T20:07:02.609Z" hostname="localhost" tests="2" failures="1" errors="0" time="0.106">
|
|
<testcase name="Basic tests for suggest API - pre v1" time="0" classname="suggest/10_basic.yaml"/>
|
|
<testcase name="Basic tests for suggest API - post v1" time="0" classname="suggest/10_basic.yaml">
|
|
<failure message="Error: Error: expected 'meetup' to sort of equal 'amsterdam' (http://localhost:8888/yaml_tests.js?_c=J9hwb:10807)" type="AssertError"/>
|
|
</testcase>
|
|
<system-out>DEBUG
|
|
starting request { body: { body: 'Amsterdam meetup' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test/test/testing_document',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test/test/testing_document?pretty=true" -XPOST -d "{\"body\":\"Amsterdam meetup\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test","_type":"test","_id":"testing_document","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'POST', path: '/_refresh', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { body: 'Amsterdam meetup' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test/test/testing_document',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test/test/testing_document?pretty=true" -XPOST -d "{\"body\":\"Amsterdam meetup\"}"
|
|
<- 201
|
|
{"ok":true,"_index":"test","_type":"test","_id":"testing_document","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000, method: 'POST', path: '/_refresh', query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_refresh?pretty=true" -XPOST
|
|
<- 200
|
|
{"ok":true,"_shards":{"total":10,"successful":5,"failed":0}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { test_suggestion: { text: 'The Amsterdma meetpu', term: { field: 'body' } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/_suggest',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_suggest?pretty=true" -XPOST -d "{\"test_suggestion\":{\"text\":\"The Amsterdma meetpu\",\"term\":{\"field\":\"body\"}}}"
|
|
<- 200
|
|
{"_shards":{"total":5,"successful":5,"failed":0},"test_suggestion":[{"text":"amsterdma","offset":4,"length":9,"options":[{"text":"amsterdam","score":0.8888889,"freq":1}]},{"text":"meetpu","offset":14,"length":6,"options":[{"text":"meetup","score":0.8333333,"freq":1}]}]}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="114" name="update/10_doc.yaml" timestamp="2013-11-11T20:07:02.715Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.048">
|
|
<testcase name="Partial document" time="0.038" classname="update/10_doc.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar', count: 1, nested: { one: 1, two: 2 } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\",\"count\":1,\"nested\":{\"one\":1,\"two\":2}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz', nested: { one: 3 } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"baz\",\"nested\":{\"one\":3}}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":2,"exists":true, "_source" : {"foo":"baz","count":1,"nested":{"one":3,"two":2}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="115" name="update/15_script.yaml" timestamp="2013-11-11T20:07:02.763Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.06">
|
|
<testcase name="Script" time="0.05" classname="update/15_script.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { foo: 'bar', count: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XPOST -d "{\"foo\":\"bar\",\"count\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ lang: 'mvel',
|
|
script: 'ctx._source.foo = bar',
|
|
params: { bar: 'xxx' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { script: '1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?script=1" -XPOST -d "{\"lang\":\"mvel\",\"script\":\"ctx._source.foo = bar\",\"params\":{\"bar\":\"xxx\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":2,"exists":true, "_source" : {"foo":"xxx","count":1}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { lang: 'mvel', script: 'ctx._source.foo = \'yyy\'' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?lang=mvel&script=ctx._source.foo%20%3D%20%27yyy%27" -XPOST
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":3}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":3,"exists":true, "_source" : {"foo":"yyy","count":1}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { script: '1', lang: 'doesnotexist', params: { bar: 'xxx' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"script\":\"1\",\"lang\":\"doesnotexist\",\"params\":{\"bar\":\"xxx\"}}"
|
|
<- 400
|
|
{"error":"ElasticSearchIllegalArgumentException[failed to execute script]; nested: ElasticSearchIllegalArgumentException[script_lang not supported [doesnotexist]]; ","status":400}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { lang: 'doesnotexist', script: '1' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?lang=doesnotexist&script=1" -XPOST
|
|
<- 400
|
|
{"error":"ElasticSearchIllegalArgumentException[failed to execute script]; nested: ElasticSearchIllegalArgumentException[script_lang not supported [doesnotexist]]; ","status":400}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="116" name="update/20_doc_upsert.yaml" timestamp="2013-11-11T20:07:02.823Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.052">
|
|
<testcase name="Doc upsert" time="0.037" classname="update/20_doc_upsert.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { doc: { foo: 'bar', count: 1 }, upsert: { foo: 'baz' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"bar\",\"count\":1},\"upsert\":{\"foo\":\"baz\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"baz"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'bar', count: 1 }, upsert: { foo: 'baz' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"bar\",\"count\":1},\"upsert\":{\"foo\":\"baz\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":2,"exists":true, "_source" : {"foo":"bar","count":1}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="117" name="update/22_doc_as_upsert.yaml" timestamp="2013-11-11T20:07:02.875Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.049">
|
|
<testcase name="Doc as upsert" time="0.038" classname="update/22_doc_as_upsert.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { doc: { foo: 'bar', count: 1 }, doc_as_upsert: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"bar\",\"count\":1},\"doc_as_upsert\":1}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"bar","count":1}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { count: 2 }, doc_as_upsert: 1 },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"count\":2},\"doc_as_upsert\":1}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":2,"exists":true, "_source" : {"foo":"bar","count":2}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="118" name="update/25_script_upsert.yaml" timestamp="2013-11-11T20:07:02.924Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.046">
|
|
<testcase name="Script upsert" time="0.036" classname="update/25_script_upsert.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body:
|
|
{ script: 'ctx._source.foo = bar',
|
|
params: { bar: 'xxx' },
|
|
upsert: { foo: 'baz' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"script\":\"ctx._source.foo = bar\",\"params\":{\"bar\":\"xxx\"},\"upsert\":{\"foo\":\"baz\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true, "_source" : {"foo":"baz"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body:
|
|
{ script: 'ctx._source.foo = bar',
|
|
params: { bar: 'xxx' },
|
|
upsert: { foo: 'baz' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"script\":\"ctx._source.foo = bar\",\"params\":{\"bar\":\"xxx\"},\"upsert\":{\"foo\":\"baz\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?pretty=true" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":2,"exists":true, "_source" : {"foo":"xxx"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="119" name="update/30_internal_version.yaml" timestamp="2013-11-11T20:07:02.970Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.049">
|
|
<testcase name="Internal version" time="0.038" classname="update/30_internal_version.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { version: 1 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?version=1" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 409
|
|
{"error":"VersionConflictEngineException[[test_1][2] [test][1]: version conflict, current [-1], provided [1]]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { version: 2 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?version=2" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 409
|
|
{"error":"VersionConflictEngineException[[test_1][2] [test][1]: version conflict, current [1], provided [2]]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { version: 1 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?version=1" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="120" name="update/35_external_version.yaml" timestamp="2013-11-11T20:07:03.019Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.048">
|
|
<testcase name="External version" time="0.034" classname="update/35_external_version.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { version: 2, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?version=2&version_type=external" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
ignore: [ 409, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { version: 2, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?version=2&version_type=external" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 409
|
|
{"error":"VersionConflictEngineException[[test_1][2] [test][1]: version conflict, current [2], provided [2]]","status":409}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { version: 3, version_type: 'external' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?version=3&version_type=external" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":3}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="121" name="update/40_routing.yaml" timestamp="2013-11-11T20:07:03.067Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.052">
|
|
<testcase name="Routing" time="0.04" classname="update/40_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?routing=5" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_routing', routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_routing&routing=5" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' } },
|
|
ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"baz\"}}"
|
|
<- 404
|
|
{"error":"DocumentMissingException[[test_1][2] [test][1]: document missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { fields: 'foo', routing: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?fields=foo&routing=5" -XPOST -d "{\"doc\":{\"foo\":\"baz\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2,"get":{"exists":true,"fields":{"foo":"baz"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="122" name="update/50_parent.yaml" timestamp="2013-11-11T20:07:03.119Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.254">
|
|
<testcase name="Parent" time="0.244" classname="update/50_parent.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 500
|
|
{"error":"RoutingMissingException[routing is required for [test_1]/[test]/[1]]","status":500}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?parent=5" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_parent,_routing', parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_parent%2C_routing&parent=5" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"5","_parent":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' } },
|
|
ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"baz\"}}"
|
|
<- 404
|
|
{"error":"DocumentMissingException[[test_1][2] [test][1]: document missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { fields: 'foo', parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?fields=foo&parent=5" -XPOST -d "{\"doc\":{\"foo\":\"baz\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2,"get":{"exists":true,"fields":{"foo":"baz"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="123" name="update/55_parent_with_routing.yaml" timestamp="2013-11-11T20:07:03.373Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.258">
|
|
<testcase name="Parent with routing" time="0.246" classname="update/55_parent_with_routing.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _parent: { type: 'foo' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_parent\":{\"type\":\"foo\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?parent=5&routing=4" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_parent,_routing', parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_parent%2C_routing&parent=5&routing=4" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_routing":"4","_parent":"5"}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' } },
|
|
ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { parent: '5' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?parent=5" -XPOST -d "{\"doc\":{\"foo\":\"baz\"}}"
|
|
<- 404
|
|
{"error":"DocumentMissingException[[test_1][1] [test][1]: document missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { fields: 'foo', parent: '5', routing: '4' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?fields=foo&parent=5&routing=4" -XPOST -d "{\"doc\":{\"foo\":\"baz\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2,"get":{"exists":true,"fields":{"foo":"baz"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="124" name="update/60_refresh.yaml" timestamp="2013-11-11T20:07:03.631Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.267">
|
|
<testcase name="Refresh" time="0.256" classname="update/60_refresh.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { settings: { 'index.refresh_interval': -1 } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"settings\":{\"index.refresh_interval\":-1}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { term: { _id: 1 } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_search?pretty=true" -XPOST -d "{\"query\":{\"term\":{\"_id\":1}}}"
|
|
<- 200
|
|
{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/2/_update',
|
|
query: { refresh: true } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/2/_update?refresh=true" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"2","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { query: { term: { _id: 2 } } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/_search',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/_search?pretty=true" -XPOST -d "{\"query\":{\"term\":{\"_id\":2}}}"
|
|
<- 200
|
|
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test_1","_type":"test","_id":"2","_score":1.0, "_source" : {"foo":"bar"}}]}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="125" name="update/70_timestamp.yaml" timestamp="2013-11-11T20:07:03.898Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.256">
|
|
<testcase name="Timestamp" time="0.245" classname="update/70_timestamp.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _timestamp: { enabled: 1, store: 'yes' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_timestamp\":{\"enabled\":1,\"store\":\"yes\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_timestamp' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_timestamp" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_timestamp":1384200424127}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { timestamp: 1372011280000 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?timestamp=1372011280000" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_timestamp' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_timestamp" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":2,"exists":true,"fields":{"_timestamp":1372011280000}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { timestamp: '2013-06-23T18:14:40.000Z' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?timestamp=2013-06-23T18%3A14%3A40.000Z" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":3}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_timestamp' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_timestamp" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":3,"exists":true,"fields":{"_timestamp":1372011280000}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="126" name="update/75_ttl.yaml" timestamp="2013-11-11T20:07:04.154Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.066">
|
|
<testcase name="TTL" time="0.055" classname="update/75_ttl.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { mappings: { test: { _ttl: { enabled: 1, store: 'yes', default: '10s' } } } },
|
|
timeout: 10000,
|
|
method: 'PUT',
|
|
path: '/test_1',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1?pretty=true" -XPUT -d "{\"mappings\":{\"test\":{\"_ttl\":{\"enabled\":1,\"store\":\"yes\",\"default\":\"10s\"}}}}"
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/_cluster/health',
|
|
query: { wait_for_status: 'yellow' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/_cluster/health?wait_for_status=yellow" -XGET
|
|
<- 200
|
|
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_ttl' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_ttl" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":1,"exists":true,"fields":{"_ttl":9996}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { ttl: 100000 } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?ttl=100000" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":2}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_ttl' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_ttl" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":2,"exists":true,"fields":{"_ttl":99997}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { ttl: '20s' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?ttl=20s" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 200
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":3}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { timeout: 10000,
|
|
method: 'GET',
|
|
path: '/test_1/test/1',
|
|
query: { fields: '_ttl' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?fields=_ttl" -XGET
|
|
<- 200
|
|
{"_index":"test_1","_type":"test","_id":"1","_version":3,"exists":true,"fields":{"_ttl":19997}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { foo: 'bar' },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1',
|
|
query: { timestamp: '2013-06-23T18:14:40.000Z', ttl: '20s' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1?timestamp=2013-06-23T18%3A14%3A40.000Z&ttl=20s" -XPOST -d "{\"foo\":\"bar\"}"
|
|
<- 400
|
|
{"error":"MapperParsingException[failed to parse [_ttl]]; nested: AlreadyExpiredException[already expired [test_1]/[test]/[1] due to expire at [1372011300000] and was processed at [1384200424208]]; ","status":400}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="127" name="update/80_fields.yaml" timestamp="2013-11-11T20:07:04.220Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.038">
|
|
<testcase name="Fields" time="0.028" classname="update/80_fields.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { body: { doc: { foo: 'baz' }, upsert: { foo: 'bar' } },
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: { fields: 'foo,bar,_source' } }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?fields=foo%2Cbar%2C_source" -XPOST -d "{\"doc\":{\"foo\":\"baz\"},\"upsert\":{\"foo\":\"bar\"}}"
|
|
<- 201
|
|
{"ok":true,"_index":"test_1","_type":"test","_id":"1","_version":1,"get":{"exists":true, "_source" : {"foo":"bar"},"fields":{"foo":"bar"}}}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="128" name="update/85_fields_meta.yaml" timestamp="2013-11-11T20:07:04.258Z" hostname="localhost" tests="1" failures="0" errors="0" time="0.005">
|
|
<testcase name="Metadata Fields" time="0.001" classname="update/85_fields_meta.yaml"/>
|
|
<system-out>DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 404
|
|
{"error":"IndexMissingException[[*] missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
<testsuite package="elasticsearch-js:yaml_tests" id="129" name="update/90_missing.yaml" timestamp="2013-11-11T20:07:04.263Z" hostname="localhost" tests="3" failures="1" errors="0" time="NaN">
|
|
<testcase name="Missing document (partial doc)" time="0.032" classname="update/90_missing.yaml"/>
|
|
<testcase name="Missing document (script)" time="0.029" classname="update/90_missing.yaml"/>
|
|
<testcase name=""after each" hook" time="0.01" classname="update/90_missing.yaml">
|
|
<failure message="Error: global leak detected: testResults" type="AssertError"/>
|
|
</testcase>
|
|
<system-out>DEBUG
|
|
starting request { body: { doc: { foo: 'bar' } },
|
|
ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"bar\"}}"
|
|
<- 404
|
|
{"error":"DocumentMissingException[[test_1][2] [test][1]: document missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { doc: { foo: 'bar' } },
|
|
ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"doc\":{\"foo\":\"bar\"}}"
|
|
<- 404
|
|
{"error":"DocumentMissingException[[test_1][2] [test][1]: document missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { script: 'ctx._source.foo = bar', params: { bar: 'xxx' } },
|
|
ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"script\":\"ctx._source.foo = bar\",\"params\":{\"bar\":\"xxx\"}}"
|
|
<- 404
|
|
{"error":"DocumentMissingException[[test_1][2] [test][1]: document missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { body: { script: 'ctx._source.foo = bar', params: { bar: 'xxx' } },
|
|
ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'POST',
|
|
path: '/test_1/test/1/_update',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/test_1/test/1/_update?pretty=true" -XPOST -d "{\"script\":\"ctx._source.foo = bar\",\"params\":{\"bar\":\"xxx\"}}"
|
|
<- 404
|
|
{"error":"DocumentMissingException[[test_1][2] [test][1]: document missing]","status":404}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
DEBUG
|
|
starting request { ignore: [ 404, [length]: 1 ],
|
|
timeout: 10000,
|
|
method: 'DELETE',
|
|
path: '/*',
|
|
query: {} }
|
|
|
|
INFO
|
|
Selected alive Connection, making request
|
|
TRACE:
|
|
curl "http://localhost:9200/*?pretty=true" -XDELETE
|
|
<- 200
|
|
{"ok":true,"acknowledged":true}
|
|
|
|
|
|
INFO
|
|
Request complete
|
|
</system-out>
|
|
<system-err></system-err>
|
|
</testsuite>
|
|
</testsuites>
|